www.pudn.com > MFCl.rar > WSAAsyncSelectServerDlg.h
// WSAAsyncSelectServerDlg.h : header file // #if !defined(AFX_WSAASYNCSELECTSERVERDLG_H__68F01362_026D_4E34_889E_BC016DD6ACA7__INCLUDED_) #define AFX_WSAASYNCSELECTSERVERDLG_H__68F01362_026D_4E34_889E_BC016DD6ACA7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "Server.h" #include#define BUFFERLEN 1024 typedef CList SOCKET_ARRAY; ///////////////////////////////////////////////////////////////////////////// // CWSAAsyncSelectServerDlg dialog class CWSAAsyncSelectServerDlg : public CDialog { public: CServer m_server; SOCKET_ARRAY m_connectionList; BOOL m_Writeflag; // Construction public: CWSAAsyncSelectServerDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CWSAAsyncSelectServerDlg) enum { IDD = IDD_WSAASYNCSELECTSERVER_DIALOG }; CIPAddressCtrl m_ServerIp; CString m_sShowText; UINT m_uPort; CString m_sInputText; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CWSAAsyncSelectServerDlg) public: virtual BOOL DestroyWindow(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CWSAAsyncSelectServerDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg LRESULT OnServerMessage(WPARAM wParam, LPARAM lParam); virtual void OnOK(); afx_msg void OnServer(); afx_msg void OnSend(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_WSAASYNCSELECTSERVERDLG_H__68F01362_026D_4E34_889E_BC016DD6ACA7__INCLUDED_)