ServerSocket.h
上传用户:jessejm
上传日期:2022-06-04
资源大小:1914k
文件大小:1k
源码类别:

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_SERVERSOCKET_H__7AC10AC2_CEAA_4A38_A4F7_24D4CF24EA65__INCLUDED_)
  2. #define AFX_SERVERSOCKET_H__7AC10AC2_CEAA_4A38_A4F7_24D4CF24EA65__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ServerSocket.h : header file
  7. //
  8. #include "afxsock.h"
  9. class CTransferDlg;
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CServerSocket command target
  12. class CServerSocket : public CSocket
  13. {
  14. // Attributes
  15. public:
  16. // Operations
  17. public:
  18. CServerSocket();
  19. virtual ~CServerSocket();
  20. // Overrides
  21. public:
  22. CTransferDlg* m_dlg;
  23. void Init(CTransferDlg * dlg);
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CServerSocket)
  26. public:
  27. virtual void OnAccept(int nErrorCode);
  28. virtual void OnClose(int nErrorCode);
  29. //}}AFX_VIRTUAL
  30. // Generated message map functions
  31. //{{AFX_MSG(CServerSocket)
  32. // NOTE - the ClassWizard will add and remove member functions here.
  33. //}}AFX_MSG
  34. // Implementation
  35. protected:
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. //{{AFX_INSERT_LOCATION}}
  39. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  40. #endif // !defined(AFX_SERVERSOCKET_H__7AC10AC2_CEAA_4A38_A4F7_24D4CF24EA65__INCLUDED_)