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

Method onError

tests/test_proto.cpp:107–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 void onDisconnected(std::shared_ptr<TCPSession>& session) override { disconnected = true; --clients; }
106 size_t onSend(const void* data, size_t size) override { Multicast(data, size); return size; }
107 void onError(int error, const std::string& category, const std::string& message) override { errors = true; }
108
109public:
110 std::atomic<bool> started{false};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected