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

Method GetClientIP

NetworkServer.cpp:161–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161const 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
181unsigned int NetworkServer::GetClientProtocolVersion(unsigned int client_num)
182{

Callers 1

UpdateInfoMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected