AnyServerDoc.h
上传用户:wpp2016
上传日期:2010-02-01
资源大小:1250k
文件大小:2k
源码类别:

Telnet服务器

开发平台:

Visual C++

  1. // AnyServerDoc.h : interface of the CAnyServerDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_ANYSERVERDOC_H__206A9D8A_F69E_11D3_8A76_00E04CDD95C8__INCLUDED_)
  5. #define AFX_ANYSERVERDOC_H__206A9D8A_F69E_11D3_8A76_00E04CDD95C8__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CChatLsnSock;
  10. class CChatSock;
  11. class CAnyServerDoc : public CDocument
  12. {
  13. protected: // create from serialization only
  14. CAnyServerDoc();
  15. DECLARE_DYNCREATE(CAnyServerDoc)
  16. // Attributes
  17. public:
  18. CChatLsnSock *g_pchatListen;
  19. CChatSock *m_pConnect;
  20. CString m_Client;
  21. CString m_Server;
  22. // Operations
  23. public:
  24. // Overrides
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CAnyServerDoc)
  27. public:
  28. virtual BOOL OnNewDocument();
  29. virtual void Serialize(CArchive& ar);
  30. protected:
  31. virtual BOOL SaveModified();
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. void ProcessPendingRead(CChatSock* pSocket);
  36. void ProcessPendingAccept();
  37. virtual ~CAnyServerDoc();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. protected:
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(CAnyServerDoc)
  46. // NOTE - the ClassWizard will add and remove member functions here.
  47. //    DO NOT EDIT what you see in these blocks of generated code !
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_ANYSERVERDOC_H__206A9D8A_F69E_11D3_8A76_00E04CDD95C8__INCLUDED_)