| 139 | } |
| 140 | |
| 141 | const char * NetworkServer::GetClientString(unsigned int client_num) |
| 142 | { |
| 143 | const char * result; |
| 144 | |
| 145 | ServerClientsMutex.lock(); |
| 146 | |
| 147 | if(client_num < ServerClients.size()) |
| 148 | { |
| 149 | result = ServerClients[client_num]->client_string.c_str(); |
| 150 | } |
| 151 | else |
| 152 | { |
| 153 | result = ""; |
| 154 | } |
| 155 | |
| 156 | ServerClientsMutex.unlock(); |
| 157 | |
| 158 | return result; |
| 159 | } |
| 160 | |
| 161 | const char * NetworkServer::GetClientIP(unsigned int client_num) |
| 162 | { |