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

Method onReceived

examples/udp_echo_client.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected