ServerDlg.h
上传用户:xsxdsb
上传日期:2009-12-14
资源大小:672k
文件大小:1k
- // ServerDlg.h : header file
- //
- #if !defined(AFX_SERVERDLG_H__419C963A_D1F4_4C08_BE95_DF225AA950CA__INCLUDED_)
- #define AFX_SERVERDLG_H__419C963A_D1F4_4C08_BE95_DF225AA950CA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "winsock2.h"
- #define CONNECE_PORT 8080 //定义通信端口
- #define TIME_OUT 5 //定义超时时限
- /////////////////////////////////////////////////////////////////////////////
- // CServerDlg dialog
- class CServerDlg : public CDialog
- {
- // Construction
- public:
- CServerDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CServerDlg)
- enum { IDD = IDD_SERVER_DIALOG };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CServerDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CServerDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnStart();
- afx_msg void OnEnd();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SERVERDLG_H__419C963A_D1F4_4C08_BE95_DF225AA950CA__INCLUDED_)