net_cmd.h
来自「类似QQ,MSN表情的richedit,用来测试表情控件的」· C头文件 代码 · 共 37 行
H
37 行
#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 + =
减小字号Ctrl + -
显示快捷键?