www.pudn.com > FTP.rar > ServerDlg.h


// ServerDlg.h : header file 
// 
 
#if !defined(AFX_SERVERDLG_H__DD6CCB6C_4344_46A4_BFF6_030766AFFFC7__INCLUDED_) 
#define AFX_SERVERDLG_H__DD6CCB6C_4344_46A4_BFF6_030766AFFFC7__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "ClientSocket.h" 
#include "ListenSocket.h" 
#define MAX_SIZE 10 
#define MAX_DATA 1024 
///////////////////////////////////////////////////////////////////////////// 
// CServerDlg dialog 
 
 
class CServerDlg : public CDialog 
{ 
// Construction 
public: 
   void AcceptSocket(); 
   void ReadData(); 
	CServerDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CServerDlg) 
	enum { IDD = IDD_SERVER_DIALOG }; 
	CListBox	m_listbox; 
	int		m_port; 
	CString	m_list; 
    CClientSocket *p_clientsocket; 
  	CListenSocket *p_listensocket; 
  	CPtrList p_list; 
	//}}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 OnClose(); 
	//}}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__DD6CCB6C_4344_46A4_BFF6_030766AFFFC7__INCLUDED_)