ftp.h

来自「动态IP地址.rar」· C头文件 代码 · 共 36 行

H
36
字号
// Ftp.h: interface for the CFtp class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FTP_H__C759FB63_AD7C_11D4_A264_DB7C8BC97A0E__INCLUDED_)
#define AFX_FTP_H__C759FB63_AD7C_11D4_A264_DB7C8BC97A0E__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class CFtp {
private:// var
	CInternetSession *pInetSession;
	CFtpConnection *pFtpConnection;
public:
	CString strAppName;

	CFtp();
	virtual ~CFtp();

	// Establish connection with the server
	bool ConnectToServer(LPCTSTR Server, LPCTSTR Username, LPCTSTR Password);

	// Get one file
	bool GetFile(LPCTSTR remoteFile, LPCTSTR localFile, int bType);

	// Transfer one file
	bool PutFile(LPCTSTR localFile, LPCTSTR remoteDir, LPCTSTR remoteFile, int bType);

	// close the connection
	bool CloseConnection();
};

#endif // !defined(AFX_FTP_H__C759FB63_AD7C_11D4_A264_DB7C8BC97A0E__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?