| 114 | } |
| 115 | |
| 116 | void CNetConsole::Update() |
| 117 | { |
| 118 | NETSOCKET Socket; |
| 119 | NETADDR Addr; |
| 120 | if(net_tcp_accept(m_Socket, &Socket, &Addr) > 0) |
| 121 | { |
| 122 | AcceptClient(Socket, &Addr); |
| 123 | } |
| 124 | |
| 125 | for(int i = 0; i < NET_MAX_CONSOLE_CLIENTS; i++) |
| 126 | { |
| 127 | if(m_aSlots[i].m_Connection.State() == CConsoleNetConnection::EState::ONLINE) |
| 128 | m_aSlots[i].m_Connection.Update(); |
| 129 | if(m_aSlots[i].m_Connection.State() == CConsoleNetConnection::EState::ERROR) |
| 130 | Drop(i, m_aSlots[i].m_Connection.ErrorString()); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | int CNetConsole::Recv(char *pLine, int MaxLength, int *pClientId) |
| 135 | { |
nothing calls this directly
no test coverage detected