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

Method Close

src/engine/shared/network_client.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void CNetClient::Close()
31{
32 if(!m_Socket)
33 {
34 return;
35 }
36 if(m_pStun)
37 {
38 delete m_pStun;
39 m_pStun = nullptr;
40 }
41 net_udp_close(m_Socket);
42 m_Socket = nullptr;
43}
44
45void CNetClient::Disconnect(const char *pReason)
46{

Callers

nothing calls this directly

Calls 1

net_udp_closeFunction · 0.85

Tested by

no test coverage detected