| 40 | } |
| 41 | |
| 42 | void CNetConsole::Close() |
| 43 | { |
| 44 | if(!m_Socket) |
| 45 | { |
| 46 | return; |
| 47 | } |
| 48 | for(auto &Slot : m_aSlots) |
| 49 | { |
| 50 | Slot.m_Connection.Disconnect("closing console"); |
| 51 | } |
| 52 | net_tcp_close(m_Socket); |
| 53 | m_Socket = nullptr; |
| 54 | } |
| 55 | |
| 56 | void CNetConsole::Drop(int ClientId, const char *pReason) |
| 57 | { |
nothing calls this directly
no test coverage detected