ex126SvrDlg.h
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // ex126SvrDlg.h : header file
  2. //
  3. #if !defined(AFX_EX126SVRDLG_H__3BBB9D2E_6902_4AE6_B567_2ACB28668730__INCLUDED_)
  4. #define AFX_EX126SVRDLG_H__3BBB9D2E_6902_4AE6_B567_2ACB28668730__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #define BUFFER_SIZE 200
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CEx126SvrDlg dialog
  11. class CListeningSocket;
  12. class CClientSocket;
  13. class CEx126SvrDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CEx126SvrDlg(CWnd* pParent = NULL); // standard constructor
  18. void ProcessPendingAccept();
  19. void ProcessPendingRead(CClientSocket* pSocket);
  20. // Dialog Data
  21. //{{AFX_DATA(CEx126SvrDlg)
  22. enum { IDD = IDD_EX126SVR_DIALOG };
  23. CListBox m_ctrlMsg;
  24. //}}AFX_DATA
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CEx126SvrDlg)
  27. protected:
  28. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. protected:
  32. HICON m_hIcon;
  33. // Generated message map functions
  34. //{{AFX_MSG(CEx126SvrDlg)
  35. virtual BOOL OnInitDialog();
  36. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  37. afx_msg void OnPaint();
  38. afx_msg HCURSOR OnQueryDragIcon();
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. private:
  42. void UpdateClients(char* buffer,int nBufferSize);
  43. CListeningSocket* m_pSocket;
  44. CPtrList m_connectionList;
  45. };
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  48. #endif // !defined(AFX_EX126SVRDLG_H__3BBB9D2E_6902_4AE6_B567_2ACB28668730__INCLUDED_)