We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374acaa commit f36e2e4Copy full SHA for f36e2e4
trantor/net/TcpConnection.h
@@ -94,6 +94,11 @@ class TcpConnection
94
virtual size_t bytesSent() const = 0;
95
virtual size_t bytesReceived() const = 0;
96
97
+ virtual bool isSSLConnection() const
98
+ {
99
+ return false;
100
+ }
101
+
102
private:
103
std::shared_ptr<void> contextPtr_;
104
};
trantor/net/ssl/SSLConnection.h
@@ -50,6 +50,10 @@ class SSLConnection : public TcpConnectionImpl
50
virtual ~SSLConnection()
51
{
52
}
53
+ virtual bool isSSLConnection() const override
54
55
+ return true;
56
57
58
59
void doHandshaking();
0 commit comments