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

📄 client.h

📁 Linux下使用Select模型的两个类Client And Server
💻 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 + -