summaryrefslogtreecommitdiff
path: root/src/tcp_wrap.cc
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-10-07 12:39:52 -0700
committerTrevor Norris <trev.norris@gmail.com>2013-10-31 16:34:11 -0700
commitccec14b5689b954cbc3b7c409fa36ffb4472226f (patch)
tree80d0f0a2916bd132da4b9c1692d00d250a53e72c /src/tcp_wrap.cc
parent8b8e3b67980d5be9feb03839c2821bd8be3680a3 (diff)
downloadnode-new-ccec14b5689b954cbc3b7c409fa36ffb4472226f.tar.gz
async-wrap: add methods to udp/tcp/pipe/timers
Now it's possible to add/remove an async listener to an individual handle created by UDP, TCP, Pipe or Timer.
Diffstat (limited to 'src/tcp_wrap.cc')
-rw-r--r--src/tcp_wrap.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc
index 73058dbd4f..85fff070a6 100644
--- a/src/tcp_wrap.cc
+++ b/src/tcp_wrap.cc
@@ -116,6 +116,8 @@ void TCPWrap::Initialize(Handle<Object> target,
SetSimultaneousAccepts);
#endif
+ AsyncWrap::AddMethods<TCPWrap>(t);
+
target->Set(FIXED_ONE_BYTE_STRING(node_isolate, "TCP"), t->GetFunction());
env->set_tcp_constructor_template(t);
}