server.h

来自「Linux下使用Select模型的两个类Client And Server」· C头文件 代码 · 共 36 行

H
36
字号
// // 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 + =
减小字号Ctrl + -
显示快捷键?