FTPClass.h
Upload User: ap04031022
Upload Date: 2022-02-14
Package Size: 1981k
Code Size: 1k
Category:

Ftp Client

Development Platform:

Visual C++

  1. // FTPclient.h: interface for the CFTPclient class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_FTPCLIENT_H__05003AE0_E234_11D2_970B_00A024EBF6AB__INCLUDED_)
  5. #define AFX_FTPCLIENT_H__05003AE0_E234_11D2_970B_00A024EBF6AB__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. class CFTPclient
  10. {
  11. public:
  12. CString m_retmsg;
  13. CByteArray m_buf;
  14. CString m_strLine;
  15. BOOL MoveFile(CString remotefile, CString localfile,BOOL pasv,BOOL get);
  16. void LogOffServer();
  17. BOOL LogOnToServer(CString hostname,int hostport,CString username, CString password, CString acct, CString fwhost,CString fwusername, CString fwpassword,int fwport,int logontype);
  18. CFTPclient();
  19. ~CFTPclient();
  20. BOOL FTPcommand(CString command);
  21. BOOL ReadStr();
  22. BOOL WriteStr(CString outputstring);
  23. BOOL List();
  24. void ProcessList();
  25. BOOL GetLine(int& ndx);
  26. private:
  27. CArchive* m_pCtrlRxarch;
  28. CArchive* m_pCtrlTxarch;
  29. CSocketFile* m_pCtrlsokfile;
  30. CSocket* m_Ctrlsok;
  31. int m_fc;
  32. BOOL ReadStr2();
  33. BOOL OpenControlChannel(CString serverhost,int serverport);
  34. void CloseControlChannel();
  35. protected:
  36. };
  37. #endif // !defined(AFX_FTPCLIENT_H__05003AE0_E234_11D2_970B_00A024EBF6AB__INCLUDED_)