| 122 | } |
| 123 | |
| 124 | int CNetwork::Recv(char *pLine, int MaxLength, int *pClientID) |
| 125 | { |
| 126 | for(int i = 0; i < NET_MAX_CLIENTS; i++) |
| 127 | { |
| 128 | if(m_aSlots[i].m_Connection.State() == NET_CONNSTATE_ONLINE && m_aSlots[i].m_Connection.Recv(pLine, MaxLength)) |
| 129 | { |
| 130 | if(pClientID) |
| 131 | *pClientID = i; |
| 132 | return 1; |
| 133 | } |
| 134 | } |
| 135 | return 0; |
| 136 | } |
| 137 | |
| 138 | int CNetwork::Send(int ClientID, const char *pLine) |
| 139 | { |