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

Method Close

src/engine/shared/network_console.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void CNetConsole::Close()
43{
44 if(!m_Socket)
45 {
46 return;
47 }
48 for(auto &Slot : m_aSlots)
49 {
50 Slot.m_Connection.Disconnect("closing console");
51 }
52 net_tcp_close(m_Socket);
53 m_Socket = nullptr;
54}
55
56void CNetConsole::Drop(int ClientId, const char *pReason)
57{

Callers

nothing calls this directly

Calls 2

net_tcp_closeFunction · 0.85
DisconnectMethod · 0.45

Tested by

no test coverage detected