diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2016-07-24 05:13:19 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2016-09-11 14:48:56 +0200 |
commit | 83a354c33b29686ba6df9cd017ab6b4baaff4272 (patch) | |
tree | cffc88b56ca26b1937cd56a60e3d388dbd542cb6 /src/connection_wrap.h | |
parent | 0e6c3360317ea7c5c7cc242dfb5c61c359493f34 (diff) | |
download | node-new-83a354c33b29686ba6df9cd017ab6b4baaff4272.tar.gz |
src: pull AfterConnect from pipe_wrap and tcp_wrap
This commit attempts to address one of the items in
https://github.com/nodejs/node/issues/4641 which is related to
src/pipe_wrap.cc and src/tcp_wrap.cc.
Currently both pipe_wrap.cc and tcp_wrap.cc contain an AfterConnect
function that are almost identical. This commit extracts this function
into ConnectionWrap so that that both can share it.
PR-URL: https://github.com/nodejs/node/pull/8448
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'src/connection_wrap.h')
-rw-r--r-- | src/connection_wrap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection_wrap.h b/src/connection_wrap.h index 1702e22dd3..7af97fd3f0 100644 --- a/src/connection_wrap.h +++ b/src/connection_wrap.h @@ -17,6 +17,7 @@ class ConnectionWrap : public StreamWrap { } static void OnConnection(uv_stream_t* handle, int status); + static void AfterConnect(uv_connect_t* req, int status); protected: ConnectionWrap(Environment* env, |