www.pudn.com > 200410111016053551.rar > ZXZTCPServer.h
#if !defined(AFX_ZXZTCPSERVER_H__0B99E96B_B1EC_11D2_B2EE_00108800176E__INCLUDED_)
#define AFX_ZXZTCPSERVER_H__0B99E96B_B1EC_11D2_B2EE_00108800176E__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// Server.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CZXZTCPServer command target
#include "ReqSocket.h"
#define MAXLISTENSOCKET 10
class CTCPServerDoc;
class CZXZTCPServer : public CSocket
{
// Attributes
public:
CTCPServerDoc *m_pDoc;
// Operations
public:
CZXZTCPServer();
virtual ~CZXZTCPServer();
void CloseSocket(CReqSocket *);
void CloseAllSocket();
BOOL SendData(char *szData, int iLen);
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CZXZTCPServer)
public:
virtual void OnAccept(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CZXZTCPServer)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
CReqSocket *pReqSocket[MAXLISTENSOCKET];
BOOL bReqSocketCreate[MAXLISTENSOCKET];
};
/////////////////////////////////////////////////////////////////////////////
//{{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_)