sources/network/rconsession.cpp

changeset 96
5314ebdcb38d
parent 92
39947c46ed17
child 105
b4466472aecd
equal deleted inserted replaced
95:e7439fa13093 96:5314ebdcb38d
37 // 37 //
38 RCONSession::RCONSession() : 38 RCONSession::RCONSession() :
39 m_state (RCON_DISCONNECTED), 39 m_state (RCON_DISCONNECTED),
40 m_lastPing (0), 40 m_lastPing (0),
41 m_numAdmins (0), 41 m_numAdmins (0),
42 m_interface (NULL) 42 m_interface (nullptr)
43 { 43 {
44 if (not m_socket.set_blocking (false)) 44 if (not m_socket.set_blocking (false))
45 { 45 {
46 fprintf (stderr, "unable to set socket as non-blocking: %s\n", 46 fprintf (stderr, "unable to set socket as non-blocking: %s\n",
47 m_socket.error_string().chars()); 47 m_socket.error_string().chars());

mercurial