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

Method Drop

server/src/network.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45int CNetwork::Drop(int ClientID, const char *pReason)
46{
47 if(m_pfnDelClient)
48 m_pfnDelClient(ClientID, pReason, m_UserPtr);
49
50 m_aSlots[ClientID].m_Connection.Disconnect(pReason);
51
52 return 0;
53}
54
55int CNetwork::AcceptClient(NETSOCKET Socket, const NETADDR *pAddr)
56{

Callers 2

UpdateMethod · 0.80
ReadConfigMethod · 0.80

Calls 1

DisconnectMethod · 0.80

Tested by

no test coverage detected