MCPcopy Create free account
hub / github.com/assaultcube/AC / findcnbyaddress

Function findcnbyaddress

source/src/server.cpp:638–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638int findcnbyaddress(ENetAddress *address)
639{
640 loopv(clients)
641 {
642 if(clients[i]->type == ST_TCPIP && clients[i]->peer->address.host == address->host && clients[i]->peer->address.port == address->port)
643 return i;
644 }
645 return -1;
646}
647
648savedscore *findscore(client &c, bool insert)
649{

Callers 3

disconnectMethod · 0.85
performMethod · 0.85
startgameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected