⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftp.h

📁 动态IP地址.rar
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -