?? ccomm.h
字號:
#ifndef _CCOMM_H_
#define _CCOMM_H_
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <winsock.h>
#define socklen_t int
#pragma comment(lib, "wsock32.lib")
class CComm
{
private:
static void *ListenThread(void *data);
SOCKET ListenSocket; // 等待接收數據的socket
sockaddr_in srv; // 綁定地址
sockaddr_in client; // 發送數據過來的地址
public:
CComm();
~CComm();
bool SendMsg(char *Msg, int Len, char *host, short port);
bool Listen(int PortNum);
};
#endif // #define _CCOMM_H_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -