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

📄 net_cmd.h

📁 类似QQ,MSN表情的richedit,用来测试表情控件的
💻 H
字号:
#ifndef _NET_CMD_H
#define _NET_CMD_H

#include "net_udp.h"
#include "netmulthread.h"
#include "windows.h"
#include "winsock.h"
#include "../ExtRichEdit.h"
#pragma comment( lib, "wsock32.lib")
#define MAXCONNECTSERVER		32
#define MAXOPENWINDOWS			16

class net_cmd : public netmulthread
{
private:
	bool        shakehandexit;
	net_udp     *pnet;
//	unsigned long ip;
//	unsigned short prot;
	SOCKET         cmdsocket;
	HWND           wnd;
	
public:
	bool        sendcmddata(char * databuf, int datalen,unsigned long ip,unsigned short prot);   //发送数据
protected:
	virtual void dealrecvdata(SOCKET  socket, char *pbuf, int length, ULONG ip, USHORT port);  //处理接收到的数据
public:
	net_cmd();
	virtual ~net_cmd();
	bool create();             //创建接收线程
	void initnet();
	void inittcp();
	void getwnd(HWND wnd );
	CString        recdata;
	CExtRichEdit   richedit;
};
#endif

⌨️ 快捷键说明

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