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

Method onError

examples/tcp_chat_client.cpp:53–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 void onError(int error, const std::string& category, const std::string& message) override
54 {
55 std::cout << "Chat TCP client caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
56 }
57
58private:
59 std::atomic<bool> _stop{false};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected