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

Method onError

tests/test_udp.cpp:69–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 void onReceived(const asio::ip::udp::endpoint& endpoint, const void* buffer, size_t size) override { SendAsync(endpoint, buffer, size); }
68 void onSent(const asio::ip::udp::endpoint& endpoint, size_t sent) override { ReceiveAsync(); }
69 void onError(int error, const std::string& category, const std::string& message) override { errors = true; }
70
71public:
72 std::atomic<bool> started{false};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected