www.pudn.com > 200410111016053551.rar > ReqSocket.h
#if !defined(AFX_REQSOCKE_H__0B99E96B_B1EC_11D2_B2EE_00108800176E__INCLUDED_)
#define AFX_SERVER_H__0B99E96B_B1EC_11D2_B2EE_00108800176E__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// Server.h : header file
//
#define WM_CLOSEREQSOCKET (WM_USER+200)
/////////////////////////////////////////////////////////////////////////////
// CServer command target
class CZXZTCPServer;
class CReqSocket : public CSocket
{
// Attributes
public:
// Operations
public:
CReqSocket( CZXZTCPServer *pSocket);
virtual ~CReqSocket();
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServer)
public:
virtual void OnReceive(int nErrorCode);
virtual void OnClose(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CServer)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
CZXZTCPServer *m_pListenSocket;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERVER_H__0B99E96B_B1EC_11D2_B2EE_00108800176E__INCLUDED_)