| 78 | } |
| 79 | |
| 80 | void P2PClient::process_requests() { |
| 81 | BinaryArray header, body; |
| 82 | while (m_protocol && read_next_request(header, body)) |
| 83 | m_protocol->on_request_ready(std::move(header), std::move(body)); |
| 84 | } |
| 85 | |
| 86 | bool P2PClient::read_next_request(BinaryArray &header, BinaryArray &body) { |
| 87 | advance_state(false); |
nothing calls this directly
no test coverage detected