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

Method ClientNetToClient

server/src/main.cpp:247–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247int CMain::ClientNetToClient(int ClientNetID)
248{
249 if(ClientNetID < 0 || ClientNetID >= NET_MAX_CLIENTS)
250 return -1;
251
252 for(int i = 0; i < NET_MAX_CLIENTS; i++)
253 {
254 if(Client(i)->m_ClientNetID == ClientNetID)
255 return i;
256 }
257
258 return -1;
259}
260
261void CMain::OnNewClient(int ClientNetID, int ClientID)
262{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected