MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / ProcessRequest_ClientString

Method ProcessRequest_ClientString

NetworkServer.cpp:900–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900void 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
919void NetworkServer::SendReply_ControllerCount(SOCKET client_sock)
920{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected