00001 #ifndef SERVER_CLIENT_H 00002 #define SERVER_CLIENT_H 00003 #include "engine/mutex.h" 00004 #include "engine/loop_thread_obj.h" 00005 #include "client_common.h" 00006 00007 class ServerClient : protected ClientCommon, public FastLoopThreadObj 00008 { 00009 Mutex info_mutex; 00010 bool is_connected; 00011 protected: 00012 virtual bool ParseBuffer() = 0; 00013 public: 00014 ServerClient(std::string _name, int _fd); 00015 ~ServerClient() {} 00016 00017 void Disconnect(); 00018 void Receive(); 00019 void Loop(); 00020 00021 const std::string GetAddress(); 00022 bool IsConnected(); 00023 }; 00024 00025 #endif // SERVER_CLIENT_H
1.5.8