MCPcopy Create free account
hub / github.com/ddnet/ddnet / Drop

Method Drop

src/engine/shared/network_console.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void CNetConsole::Drop(int ClientId, const char *pReason)
57{
58 if(m_pfnDelClient)
59 m_pfnDelClient(ClientId, pReason, m_pUser);
60
61 m_aSlots[ClientId].m_Connection.Disconnect(pReason);
62}
63
64int CNetConsole::AcceptClient(NETSOCKET Socket, const NETADDR *pAddr)
65{

Callers

nothing calls this directly

Calls 1

DisconnectMethod · 0.45

Tested by

no test coverage detected