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

Method CreateSession

performance/ws_echo_server.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40protected:
41 std::shared_ptr<TCPSession> CreateSession(const std::shared_ptr<TCPServer>& server) override
42 {
43 return std::make_shared<EchoSession>(std::dynamic_pointer_cast<WSServer>(server));
44 }
45
46protected:
47 void onError(int error, const std::string& category, const std::string& message) override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected