summaryrefslogtreecommitdiff
path: root/src/udp_wrap.cc
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2017-11-20 17:18:40 +0100
committerMyles Borins <mylesborins@google.com>2017-12-12 03:27:50 -0500
commite0ce7cf1e9eb537e474b870e1e3306492b408845 (patch)
tree6d7faa66a3d26efb4a88870baa5f2714091820f8 /src/udp_wrap.cc
parentf1b26be684c07096505cc4e4cc4f416d0a4a645d (diff)
downloadnode-new-e0ce7cf1e9eb537e474b870e1e3306492b408845.tar.gz
async_wrap: add provider types for net server
Adds `TCPSERVERWRAP` and `PIPESERVERWRAP` as provider types. This makes it possible to distinguish servers from connections. Backport-PR-URL: https://github.com/nodejs/node/pull/17621 PR-URL: #17157 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/udp_wrap.cc')
-rw-r--r--src/udp_wrap.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc
index 87afdc4a4c..6349b0bdc3 100644
--- a/src/udp_wrap.cc
+++ b/src/udp_wrap.cc
@@ -492,7 +492,9 @@ void UDPWrap::OnRecv(uv_udp_t* handle,
}
-Local<Object> UDPWrap::Instantiate(Environment* env, AsyncWrap* parent) {
+Local<Object> UDPWrap::Instantiate(Environment* env,
+ AsyncWrap* parent,
+ UDPWrap::SocketType type) {
EscapableHandleScope scope(env->isolate());
AsyncHooks::InitScope init_scope(env, parent->get_async_id());
// If this assert fires then Initialize hasn't been called yet.