From b44efded8481877c1ec782112b9ae4c4fec37463 Mon Sep 17 00:00:00 2001 From: Andreas Madsen Date: Mon, 20 Nov 2017 17:18:40 +0100 Subject: async_wrap: add provider types for net server Adds `TCPSERVERWRAP` and `PIPESERVERWRAP` as provider types. This makes it possible to distinguish servers from connections. PR-URL: https://github.com/nodejs/node/pull/17157 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- src/udp_wrap.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/udp_wrap.cc') diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index 504e057682..d8665d6789 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -496,7 +496,9 @@ void UDPWrap::OnRecv(uv_udp_t* handle, } -Local UDPWrap::Instantiate(Environment* env, AsyncWrap* parent) { +Local 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. -- cgit v1.2.1