| 37 | } |
| 38 | |
| 39 | void 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 | |
| 52 | int CNetworkClient::Update() |
| 53 | { |
no test coverage detected