MCPcopy Create free account
hub / github.com/cppla/ServerStatus / ClientNet

Method ClientNet

server/src/main.cpp:233–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233CMain::CClient *CMain::ClientNet(int ClientNetID)
234{
235 if(ClientNetID < 0 || ClientNetID >= NET_MAX_CLIENTS)
236 return 0;
237
238 for(int i = 0; i < NET_MAX_CLIENTS; i++)
239 {
240 if(Client(i)->m_ClientNetID == ClientNetID)
241 return Client(i);
242 }
243
244 return 0;
245}
246
247int CMain::ClientNetToClient(int ClientNetID)
248{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected