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

Method Disconnect

server/src/network_client.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void CNetworkClient::Disconnect(const char *pReason)
40{
41 if(State() == NET_CONNSTATE_OFFLINE)
42 return;
43
44 if(pReason && pReason[0])
45 Send(pReason);
46
47 net_tcp_close(m_Socket);
48
49 Reset();
50}
51
52int CNetworkClient::Update()
53{

Callers 2

CloseMethod · 0.80
DropMethod · 0.80

Calls 1

net_tcp_closeFunction · 0.85

Tested by

no test coverage detected