| 179 | } |
| 180 | |
| 181 | void CServer::Send(int ClientID, const char *pLine) |
| 182 | { |
| 183 | if(!m_Ready) |
| 184 | return; |
| 185 | |
| 186 | if(ClientID == -1) |
| 187 | { |
| 188 | for(int i = 0; i < NET_MAX_CLIENTS; i++) |
| 189 | { |
| 190 | if(m_aClients[i].m_State == CClient::STATE_AUTHED) |
| 191 | m_Network.Send(i, pLine); |
| 192 | } |
| 193 | } |
| 194 | else if(ClientID >= 0 && ClientID < NET_MAX_CLIENTS && m_aClients[ClientID].m_State == CClient::STATE_AUTHED) |
| 195 | m_Network.Send(ClientID, pLine); |
| 196 | } |
| 197 | |
| 198 | void CServer::Shutdown() |
| 199 | { |
no outgoing calls
no test coverage detected