diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-01-31 14:41:10 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-02-05 15:17:53 -0800 |
commit | 62b4796e369895e614e22bb176702f2499317f4a (patch) | |
tree | 48b7e0c33cd3977b75f97348dc5f88a2b8b3f560 /src/tls_wrap.h | |
parent | cccc33b0b4b4ee719fedc5291934d490e50893c3 (diff) | |
download | android-node-v8-62b4796e369895e614e22bb176702f2499317f4a.tar.gz android-node-v8-62b4796e369895e614e22bb176702f2499317f4a.tar.bz2 android-node-v8-62b4796e369895e614e22bb176702f2499317f4a.zip |
tls: in-line comments and other cleanups
PR-URL: https://github.com/nodejs/node/pull/25861
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
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_); } |