MyFtpClient.h
资源名称:FTP总集.rar [点击查看]
上传用户:tjfeida
上传日期:2013-03-10
资源大小:1917k
文件大小:1k
源码类别:
Ftp客户端
开发平台:
Visual C++
- #if _MSC_VER >= 1000
- #pragma once
- #endif
- #include "afxcoll.h"
- #include "afxwin.h"
- #include "Afxsock.h"
- class MyFtpClient
- {
- public:
- MyFtpClient(void);
- ~MyFtpClient(void);
- CString m_strRetmsg;
- CByteArray m_strBuffer;
- CString m_strLine;
- BOOL MoveFile(CString RemoteFile, CString LocalFile, bool Pasv, bool Getfile);
- void LogOffServer(void);
- BOOL LogOntoServer(CString ServerName, int ServerPort, CString UserName, CString PassWord, CString Accept, CString FireWordServer, CString FireWallUserName, CString FireWallPassWord, int FireWallPort, int LogOnType);
- BOOL FTPCommand(CString command);
- BOOL ReadString1(void);
- BOOL WriteString(CString OutPutString);
- BOOL List(void);
- BOOL GetLine(int& index);
- private:
- CSocketFile* m_pControlSocketFile;
- CSocket* m_pControlSocket;
- CArchive* m_pControlRarchive;
- CArchive* m_pControlTarchive;
- int m_pFireWallCheck;
- public:
- BOOL ReadString2(void);
- BOOL OpenControlChannel(CString serverAddress, int serverPort);
- void CloseControlChannel(void);
- BOOL readstring1;
- };