| 32 | }; |
| 33 | |
| 34 | class EchoServer : public SSLServer |
| 35 | { |
| 36 | public: |
| 37 | using SSLServer::SSLServer; |
| 38 | |
| 39 | protected: |
| 40 | std::shared_ptr<SSLSession> CreateSession(const std::shared_ptr<SSLServer>& server) override |
| 41 | { |
| 42 | return std::make_shared<EchoSession>(server); |
| 43 | } |
| 44 | |
| 45 | protected: |
| 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 | |
| 52 | int main(int argc, char** argv) |
| 53 | { |
nothing calls this directly
no outgoing calls
no test coverage detected