| 49 | } |
| 50 | |
| 51 | void onReceived(const asio::ip::udp::endpoint& endpoint, const void* buffer, size_t size) override |
| 52 | { |
| 53 | std::cout << "Incoming: " << std::string((const char*)buffer, size) << std::endl; |
| 54 | |
| 55 | // Continue receive datagrams |
| 56 | ReceiveAsync(); |
| 57 | } |
| 58 | |
| 59 | void onError(int error, const std::string& category, const std::string& message) override |
| 60 | { |
nothing calls this directly
no outgoing calls
no test coverage detected