diff options
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r-- | src/tls_wrap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h index cc91c2edc7..d3cbb992ba 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -80,6 +80,8 @@ class TLSWrap : public AsyncWrap, // Reset error_ string to empty. Not related to "clear text". void ClearError() override; + + // Called by the done() callback of the 'newSession' event. void NewSessionDoneCb(); // Implement MemoryRetainer: @@ -88,6 +90,8 @@ class TLSWrap : public AsyncWrap, SET_SELF_SIZE(TLSWrap) protected: + // Alternative to StreamListener::stream(), that returns a StreamBase instead + // of a StreamResource. inline StreamBase* underlying_stream() { return static_cast<StreamBase*>(stream_); } |