相关代码 |
|
// // File: server.h // Author: root // // Created on February 19, 2008, 9:34 AM // #ifndef _SERVER_H #define _SERVER_H #include #include #include #include "client.h" using namespace std; class server{ public: server(int port); ~server(); bool update(bool block); vector clients; enum {MAXCLIENTS = 11}; void kill(){ _kill = true; } private: int _fd; bool _kill; }; #endif /* _SERVER_H */