| 898 | } |
| 899 | |
| 900 | void NetworkServer::ProcessRequest_ClientString(SOCKET client_sock, unsigned int /*data_size*/, char * data) |
| 901 | { |
| 902 | ServerClientsMutex.lock(); |
| 903 | for(unsigned int this_idx = 0; this_idx < ServerClients.size(); this_idx++) |
| 904 | { |
| 905 | if(ServerClients[this_idx]->client_sock == client_sock) |
| 906 | { |
| 907 | ServerClients[this_idx]->client_string = data; |
| 908 | break; |
| 909 | } |
| 910 | } |
| 911 | ServerClientsMutex.unlock(); |
| 912 | |
| 913 | /*-------------------------------------------------*\ |
| 914 | | Client info has changed, call the callbacks | |
| 915 | \*-------------------------------------------------*/ |
| 916 | ClientInfoChanged(); |
| 917 | } |
| 918 | |
| 919 | void NetworkServer::SendReply_ControllerCount(SOCKET client_sock) |
| 920 | { |