| 159 | } |
| 160 | |
| 161 | const char * NetworkServer::GetClientIP(unsigned int client_num) |
| 162 | { |
| 163 | const char * result; |
| 164 | |
| 165 | ServerClientsMutex.lock(); |
| 166 | |
| 167 | if(client_num < ServerClients.size()) |
| 168 | { |
| 169 | result = ServerClients[client_num]->client_ip.c_str(); |
| 170 | } |
| 171 | else |
| 172 | { |
| 173 | result = ""; |
| 174 | } |
| 175 | |
| 176 | ServerClientsMutex.unlock(); |
| 177 | |
| 178 | return result; |
| 179 | } |
| 180 | |
| 181 | unsigned int NetworkServer::GetClientProtocolVersion(unsigned int client_num) |
| 182 | { |