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()); |