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

📄 netcontrol.h

📁 MFC VC6.0 实现的一个2人对战象棋游戏
💻 H
字号:
// NetControl.h: interface for the NetControl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_NETCONTROL_H__5FDC8688_52D4_4F84_B4B5_C4B081ABE48D__INCLUDED_)
#define AFX_NETCONTROL_H__5FDC8688_52D4_4F84_B4B5_C4B081ABE48D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Net.h"
class CProgramView;
class NetControl  
{
public:
	NetControl(CProgramView *p);
	void SendAction(int x,int y,int action=1);
	void SendMsg(char const *pMsg);
	void OnSorc();
	void OnSet();
	void OnOpen();
	void FetchMsg(CNet *pRequest);
	CNet* ConnectServer();
	NetControl();
	virtual ~NetControl();
	UINT m_Port;//端口
	CString m_PassWord;
	LPCTSTR m_Server;//服务器名称
	CNet *m_pSocket;//请求连接
	CNet *m_pListening;//监听Socket
	CProgramView *m_pView;
	bool m_Ready[2];
	bool m_Isserver;
private:

};

#endif // !defined(AFX_NETCONTROL_H__5FDC8688_52D4_4F84_B4B5_C4B081ABE48D__INCLUDED_)

⌨️ 快捷键说明

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