diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-18 15:30:40 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-18 15:30:40 +0400 |
commit | 61cda1e34ec8ea779f1a137e86eda81e2d394bae (patch) | |
tree | 8a8130f25e83716cd9f9712801de4a1d6670ed00 /src/pipe_wrap.cc | |
parent | 0c7bf8132eed630c81fc96178091d1fc7ad8e65e (diff) |
PipeWrap should use HandleWrap::Close
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r-- | src/pipe_wrap.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index ae9aee10448..4d8f35239e3 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -1,6 +1,7 @@ #include <node.h> #include <node_buffer.h> #include <req_wrap.h> +#include <handle_wrap.h> #include <stream_wrap.h> // Rules: @@ -70,11 +71,12 @@ class PipeWrap : StreamWrap { t->InstanceTemplate()->SetInternalFieldCount(1); + NODE_SET_PROTOTYPE_METHOD(t, "close", HandleWrap::Close); + NODE_SET_PROTOTYPE_METHOD(t, "readStart", StreamWrap::ReadStart); NODE_SET_PROTOTYPE_METHOD(t, "readStop", StreamWrap::ReadStop); NODE_SET_PROTOTYPE_METHOD(t, "write", StreamWrap::Write); NODE_SET_PROTOTYPE_METHOD(t, "shutdown", StreamWrap::Shutdown); - NODE_SET_PROTOTYPE_METHOD(t, "close", StreamWrap::Close); NODE_SET_PROTOTYPE_METHOD(t, "bind", Bind); NODE_SET_PROTOTYPE_METHOD(t, "listen", Listen); |