From 62b4796e369895e614e22bb176702f2499317f4a Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 31 Jan 2019 14:41:10 -0800 Subject: tls: in-line comments and other cleanups PR-URL: https://github.com/nodejs/node/pull/25861 Reviewed-By: Fedor Indutny Reviewed-By: Anna Henningsen --- src/tls_wrap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tls_wrap.h') 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(stream_); } -- cgit v1.2.3