MCPcopy Create free account
hub / github.com/chronoxor/CppServer / onReceived

Method onReceived

performance/udp_echo_client.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected