| 138 | |
| 139 | |
| 140 | void cRCONServer::OnConnectionAccepted(cSocket & a_Socket) |
| 141 | { |
| 142 | if (!a_Socket.IsValid()) |
| 143 | { |
| 144 | return; |
| 145 | } |
| 146 | |
| 147 | LOG("RCON Client \"%s\" connected!", a_Socket.GetIPString().c_str()); |
| 148 | |
| 149 | // Create a new cConnection object, it will be deleted when the connection is closed |
| 150 | m_SocketThreads.AddClient(a_Socket, new cConnection(*this, a_Socket)); |
| 151 | } |
| 152 | |
| 153 | |
| 154 |