Very graceful auto-reconnect for the server irc bot. Will give up after two attempts within 60 seconds.

This commit is contained in:
lotodore
2007-12-08 00:40:46 +00:00
parent 5f0fc7ab93
commit 4196f1be3a
2 changed files with 99 additions and 70 deletions
+3
View File
@@ -48,6 +48,8 @@ protected:
// Main function of the thread.
virtual void Main();
bool IrcInit();
void IrcMain();
void HandleIrcError(int errorCode);
@@ -59,6 +61,7 @@ private:
IrcCallback &m_callback;
boost::timers::portable::microsec_timer m_terminationTimer;
boost::timers::portable::microsec_timer m_lastConnectTimer;
};
#endif