📄 client.h
字号:
// // File: client.h// Author: root//// Created on February 19, 2008, 9:36 AM//#ifndef _CLIENT_H#define _CLIENT_H#include <sys/socket.h>#include <sys/errno.h>#include <sys/types.h>#include <netinet/in.h>#include <arpa/inet.h>#include <fcntl.h>#include <stdio.h>#include <string>#include <iostream>using namespace std;class client{public: enum {BUFFERSIZE = 1024}; client(int fd,struct sockaddr_in sinaddr,int timeout); ~client(); bool update(); string _value;private: int _fd; int _timeout; char *buffer;};#endif /* _CLIENT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -