reconnect field init

This commit is contained in:
melo.yao 2015-04-11 00:32:10 +08:00
parent 9da4979d7f
commit 933426051f

View File

@ -25,13 +25,16 @@ namespace sio
m_con_state(con_closed),
m_ping_interval(0),
m_ping_timeout(0),
m_network_thread()
m_network_thread(),
m_reconn_attempts(0xFFFFFFFF),
m_reconn_delay(5000),
m_reconn_delay_max(25000)
{
using websocketpp::log::alevel;
#ifndef DEBUG
#ifndef DEBUG
m_client.clear_access_channels(alevel::all);
m_client.set_access_channels(alevel::connect|alevel::disconnect|alevel::app);
#endif
#endif
// Initialize the Asio transport policy
m_client.init_asio();