?? xheader.h
字號:
/** * Written by Chen Yunfei, 10617136 * Here defines some macros and structs for common use * MAX_CONS determines the number of clients we can serve */#ifndef _XHEADER_H#define _XHEADER_H#include <stdlib.h>#define MSG_LEN 50#define MAX_CONS 5#define T char#define BUFSIZE 512#define Z cerr<<"#";struct Msg{ char Ip[16]; int Port; int Sockfd; char Name[16]; char SMsg[MSG_LEN];};typedef struct Reg{ int thrdID; int sockID;};#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -