| 73 | } |
| 74 | |
| 75 | bool CConnection::ReadyRead() |
| 76 | { |
| 77 | if (!Connected || m_Socket == nullptr) |
| 78 | { |
| 79 | return false; |
| 80 | } |
| 81 | |
| 82 | DataReady = tcp_select(m_Socket); |
| 83 | if (DataReady == -1) |
| 84 | { |
| 85 | Error(Network, "CConnection::ReadyRead SOCKET_ERROR"); |
| 86 | Disconnect(); |
| 87 | } |
| 88 | |
| 89 | return (DataReady != 0); |
| 90 | } |
| 91 | |
| 92 | bool CConnection::Read(int maxSize) |
| 93 | { |
no test coverage detected