Adding server function to reconnect to the chat server.

This commit is contained in:
lotodore
2009-08-17 11:26:03 +00:00
parent 6eb25757bc
commit b796b0cbe7
5 changed files with 31 additions and 3 deletions
+4
View File
@@ -37,6 +37,7 @@ public:
void Init(const std::string &serverAddr, int port, bool ipv6,
const std::string &clientSecret, const std::string &serverSecret);
void ReInit();
void HandleChatText(unsigned playerId, const std::string &name, const std::string &text);
protected:
@@ -59,6 +60,9 @@ private:
bool m_connected;
unsigned m_curRequestId;
std::string m_serverAddr;
int m_serverPort;
bool m_useIpv6;
std::string m_clientSecret;
std::string m_serverSecret;
unsigned char m_recvBuf[2*MAX_CLEANER_PACKET_SIZE];