ex126SvrDlg.h
资源名称:VC6.0.rar [点击查看]
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:2k
源码类别:
书籍源码
开发平台:
Visual C++
- // ex126SvrDlg.h : header file
- //
- #if !defined(AFX_EX126SVRDLG_H__3BBB9D2E_6902_4AE6_B567_2ACB28668730__INCLUDED_)
- #define AFX_EX126SVRDLG_H__3BBB9D2E_6902_4AE6_B567_2ACB28668730__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define BUFFER_SIZE 200
- /////////////////////////////////////////////////////////////////////////////
- // CEx126SvrDlg dialog
- class CListeningSocket;
- class CClientSocket;
- class CEx126SvrDlg : public CDialog
- {
- // Construction
- public:
- CEx126SvrDlg(CWnd* pParent = NULL); // standard constructor
- void ProcessPendingAccept();
- void ProcessPendingRead(CClientSocket* pSocket);
- // Dialog Data
- //{{AFX_DATA(CEx126SvrDlg)
- enum { IDD = IDD_EX126SVR_DIALOG };
- CListBox m_ctrlMsg;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CEx126SvrDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CEx126SvrDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void UpdateClients(char* buffer,int nBufferSize);
- CListeningSocket* m_pSocket;
- CPtrList m_connectionList;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_EX126SVRDLG_H__3BBB9D2E_6902_4AE6_B567_2ACB28668730__INCLUDED_)