summaryrefslogtreecommitdiff
path: root/src/pipe_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/pipe_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/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index a4e4ed1237..a522775743 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -111,6 +111,8 @@ void PipeWrap::Initialize(Handle<Object> target,
NODE_SET_PROTOTYPE_METHOD(t, "setPendingInstances", SetPendingInstances);
#endif
+ AsyncWrap::AddMethods<PipeWrap>(t);
+
target->Set(FIXED_ONE_BYTE_STRING(node_isolate, "Pipe"), t->GetFunction());
env->set_pipe_constructor_template(t);
}