FtpdPasvSrv.h
上传用户:shengde
上传日期:2007-02-26
资源大小:117k
文件大小:1k
源码类别:

Ftp服务器

开发平台:

Visual C++

  1. #if !defined(AFX_FTPPASVSRV_H__4D149542_EF90_11D3_AAE3_0040C787491D__INCLUDED_)
  2. #define AFX_FTPPASVSRV_H__4D149542_EF90_11D3_AAE3_0040C787491D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // FtpPasvSrv.h : header file
  7. //
  8. #include "blocksock.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CFtpPasvSrv command target
  11. class CFtpPasvSrv : public CBlockingSocket
  12. {
  13. // Attributes
  14. public:
  15. // Operations
  16. public:
  17. CFtpPasvSrv();
  18. virtual ~CFtpPasvSrv();
  19. // Overrides
  20. public:
  21. bool m_specify_data_port;
  22. UINT m_port_from;
  23. UINT m_port_to;
  24. void AttachSocket(CSocket* dataSkt);
  25. CString client_ip;
  26. SOCKADDR_IN lpsockftpd;
  27. UINT launchSocket();
  28. UINT m_current_port;
  29. CFtpPasvSrv(CSocket* dataSkt,UINT from,UINT to);
  30. protected:
  31. };
  32. /////////////////////////////////////////////////////////////////////////////
  33. //{{AFX_INSERT_LOCATION}}
  34. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  35. #endif // !defined(AFX_FTPPASVSRV_H__4D149542_EF90_11D3_AAE3_0040C787491D__INCLUDED_)