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

📄 server.h

📁 Linux下使用Select模型的两个类Client And Server
💻 H
字号:
// // File:   server.h// Author: root//// Created on February 19, 2008, 9:34 AM//#ifndef _SERVER_H#define	_SERVER_H#include <vector>#include <iostream>#include <string>#include "client.h"using namespace std;class server{public:    server(int port);    ~server();    bool update(bool block);    vector<client *> clients;    enum {MAXCLIENTS = 11};    void kill(){        _kill = true;    }private:    int _fd;    bool _kill;};#endif	/* _SERVER_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -