Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-07-20 00:49:42 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-07-21 05:51:23 +0400
commit37cbc355d53077c3406ab4f1d7679f3504dcbe51 (patch)
tree86b087558fd770e5e7aef33ff61cfd139044a831 /src/pipe_wrap.cc
parent588d885e81dec667920383ac7246daceeb7f99fd (diff)
net: add bindings to libuv pipe API
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 5d0c5128edc..15de2a3919e 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -85,6 +85,7 @@ class PipeWrap : StreamWrap {
int r = uv_pipe_init(&handle_);
assert(r == 0); // How do we proxy this error up to javascript?
// Suggestion: uv_pipe_init() returns void.
+ handle_.data = reinterpret_cast<void*>(this);
UpdateWriteQueueSize();
}