⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 socketlisten.h

📁 java程序五子棋源代码。 java程序五子棋源代码。
💻 H
字号:
#if !defined(AFX_SOCKETLISTEN_H__54F8575A_9A69_4F45_AD1A_65F1FBABC748__INCLUDED_)
#define AFX_SOCKETLISTEN_H__54F8575A_9A69_4F45_AD1A_65F1FBABC748__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SocketListen.h : header file
//



/////////////////////////////////////////////////////////////////////////////
// CSocketListen command target
class CChessGateDlg;
class CSocketListen : public CSocket
{
// Attributes
public:
	CChessGateDlg *pDlg;
private:
	CCriticalSection cts_SocketQueue;
	int queuenum;   //连接队列的序号
// Operations
public:
	CSocketListen(CChessGateDlg *pChessGateDlg,int queuenum);
	virtual ~CSocketListen();

// Overrides
public:
	bool SendData(const void* lpBuf, int nBufLen, UINT nHostPort, LPCTSTR lpszHostAddress = NULL, int nFlags = 0);
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSocketListen)
	public:
	virtual void OnReceive(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CSocketListen)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:
	void CheckRespond(int clientport,LPCTSTR clientip); 
	void DispenseData(NODE_STRUCT RecvNode);
	void ReceiveDataRespond(int clientport,LPCTSTR clientip); 
	
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SOCKETLISTEN_H__54F8575A_9A69_4F45_AD1A_65F1FBABC748__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -