* Check whether we received/can send some data from/to the server and * when that's the case handle it appropriately. * @return true when everything went okay. */
| 57 | * @return true when everything went okay. |
| 58 | */ |
| 59 | bool QueryNetworkGameSocketHandler::Receive() |
| 60 | { |
| 61 | if (this->CanSendReceive()) { |
| 62 | NetworkRecvStatus res = this->ReceivePackets(); |
| 63 | if (res != NETWORK_RECV_STATUS_OKAY) { |
| 64 | this->CloseConnection(res); |
| 65 | return false; |
| 66 | } |
| 67 | } |
| 68 | return true; |
| 69 | } |
| 70 | |
| 71 | /** Send the packets of this socket handler. */ |
| 72 | void QueryNetworkGameSocketHandler::Send() |
no test coverage detected