00001 #ifndef _NETMANAGERCLIENT_H_ 00002 #define _NETMANAGERCLIENT_H_ 00003 00004 #include "netmanager.h" 00005 00016 class NetManagerClient : public NetManager 00017 { 00018 public: 00029 NetManagerClient(const string& server); 00030 00034 ~NetManagerClient(); 00035 00049 void send(MessagePacket& msg); 00050 00063 void send(const string& msg); 00064 00074 MessagePacket next(); 00075 00083 void flush(); 00084 00090 int getClientID() const {return clientID;}; 00091 00092 private: 00097 virtual bool forwardMessage(const MessagePacket& msg, IPaddress* ip); 00098 00105 MessagePacket outputBuffer; 00106 00112 int clientID; 00113 }; 00114 00115 #endif