netcontrol.h

来自「画面好看的象棋界面设计。类似于QQ游戏。很不错!」· C头文件 代码 · 共 39 行

H
39
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?