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

Class EchoServer

performance/ssl_echo_server.cpp:34–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34class EchoServer : public SSLServer
35{
36public:
37 using SSLServer::SSLServer;
38
39protected:
40 std::shared_ptr<SSLSession> CreateSession(const std::shared_ptr<SSLServer>& server) override
41 {
42 return std::make_shared<EchoSession>(server);
43 }
44
45protected:
46 void onError(int error, const std::string& category, const std::string& message) override
47 {
48 std::cout << "SSL server caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
49 }
50};
51
52int main(int argc, char** argv)
53{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected