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

Method Close

server/src/network.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35int CNetwork::Close()
36{
37 for(int i = 0; i < NET_MAX_CLIENTS; i++)
38 m_aSlots[i].m_Connection.Disconnect("Closing connection.");
39
40 net_tcp_close(m_Socket);
41
42 return 0;
43}
44
45int CNetwork::Drop(int ClientID, const char *pReason)
46{

Callers 2

ShutdownMethod · 0.80
RunMethod · 0.80

Calls 2

net_tcp_closeFunction · 0.85
DisconnectMethod · 0.80

Tested by

no test coverage detected