| 722 | } |
| 723 | |
| 724 | const NETADDR *CServer::ClientAddr(int ClientId) const |
| 725 | { |
| 726 | dbg_assert(ClientId >= 0 && ClientId < MAX_CLIENTS, "Invalid ClientId: %d", ClientId); |
| 727 | dbg_assert(m_aClients[ClientId].m_State != CServer::CClient::STATE_EMPTY, "Client slot %d is empty", ClientId); |
| 728 | if(m_aClients[ClientId].m_DebugDummy) |
| 729 | { |
| 730 | return &m_aClients[ClientId].m_DebugDummyAddr; |
| 731 | } |
| 732 | return m_NetServer.ClientAddr(ClientId); |
| 733 | } |
| 734 | |
| 735 | const std::array<char, NETADDR_MAXSTRSIZE> &CServer::ClientAddrStringImpl(int ClientId, bool IncludePort) const |
| 736 | { |
no outgoing calls
no test coverage detected