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

Method onError

examples/tcp_chat_server.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void onError(int error, const std::string& category, const std::string& message) override
49 {
50 std::cout << "Chat TCP session caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
51 }
52};
53
54class ChatServer : public CppServer::Asio::TCPServer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected