| 50 | } |
| 51 | |
| 52 | void onReceived(const asio::ip::udp::endpoint& endpoint, const void* buffer, size_t size) override |
| 53 | { |
| 54 | timestamp_stop = Timestamp::nano(); |
| 55 | total_bytes += size; |
| 56 | ++total_messages; |
| 57 | |
| 58 | // Continue receive datagrams |
| 59 | ReceiveAsync(); |
| 60 | |
| 61 | SendMessage(); |
| 62 | } |
| 63 | |
| 64 | void onError(int error, const std::string& category, const std::string& message) override |
| 65 | { |
nothing calls this directly
no outgoing calls
no test coverage detected