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

Function purgeclient

source/src/master.cpp:200–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void purgeclient(int n)
201{
202 mclient &c = *mclients[n];
203 if(c.message) c.message->purge();
204 enet_socket_destroy(c.socket);
205 delete mclients[n];
206 mclients.remove(n);
207}
208
209void output(mclient &c, const char *msg, int len = 0)
210{

Callers 3

checkclientsFunction · 0.85
loopvFunction · 0.85
banclientsFunction · 0.85

Calls 3

purgeMethod · 0.80
enet_socket_destroyFunction · 0.50
removeMethod · 0.45

Tested by

no test coverage detected