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

Method Init

server/src/network_client.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void CNetworkClient::Init(NETSOCKET Socket, const NETADDR *pAddr)
29{
30 Reset();
31
32 m_Socket = Socket;
33 net_set_non_blocking(m_Socket);
34
35 m_PeerAddr = *pAddr;
36 m_State = NET_CONNSTATE_ONLINE;
37}
38
39void CNetworkClient::Disconnect(const char *pReason)
40{

Callers

nothing calls this directly

Calls 1

net_set_non_blockingFunction · 0.85

Tested by

no test coverage detected