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

Method onError

examples/proto_server.cpp:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86protected:
87 void onError(int error, const std::string& category, const std::string& message) override
88 {
89 std::cout << "Simple protocol server caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
90 }
91
92 // Protocol implementation
93 size_t onSend(const void* data, size_t size) override { Multicast(data, size); return size; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected