mirror of
https://github.com/socketio/socket.io-client-cpp.git
synced 2026-06-10 20:36:14 +00:00
reconnect field init
This commit is contained in:
parent
9da4979d7f
commit
933426051f
@ -22,16 +22,19 @@ using boost::posix_time::milliseconds;
|
|||||||
namespace sio
|
namespace sio
|
||||||
{
|
{
|
||||||
client_impl::client_impl() :
|
client_impl::client_impl() :
|
||||||
m_con_state(con_closed),
|
m_con_state(con_closed),
|
||||||
m_ping_interval(0),
|
m_ping_interval(0),
|
||||||
m_ping_timeout(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;
|
using websocketpp::log::alevel;
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
m_client.clear_access_channels(alevel::all);
|
m_client.clear_access_channels(alevel::all);
|
||||||
m_client.set_access_channels(alevel::connect|alevel::disconnect|alevel::app);
|
m_client.set_access_channels(alevel::connect|alevel::disconnect|alevel::app);
|
||||||
#endif
|
#endif
|
||||||
// Initialize the Asio transport policy
|
// Initialize the Asio transport policy
|
||||||
m_client.init_asio();
|
m_client.init_asio();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user