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

Method Drop

src/engine/shared/network_server.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void CNetServer::Drop(int ClientId, const char *pReason)
98{
99 // TODO: insert lots of checks here
100
101 if(m_pfnDelClient)
102 m_pfnDelClient(ClientId, pReason, m_pUser);
103
104 m_aSlots[ClientId].m_Connection.Disconnect(pReason);
105}
106
107void CNetServer::Update()
108{

Callers 7

ConLogoutMethod · 0.45
UpdateMethod · 0.45
BanExtMethod · 0.45
KickMethod · 0.45
ProcessClientPacketMethod · 0.45
OnNetMsgRconAuthMethod · 0.45
RunMethod · 0.45

Calls 1

DisconnectMethod · 0.45

Tested by

no test coverage detected