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>2012-03-09 21:20:36 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-09 21:42:13 +0400
commit296b7a580b106ce07c7d5fc3018c9f05dc3fb70d (patch)
treedb61922c18ce638903b9a900ab1600a7076a31d7 /src/pipe_wrap.cc
parent9d72a742e3c35c13e24e69184a4befe5a7e84fef (diff)
cluster: support passing of named pipes
Fixes triggered assertion: Assertion failed: (0 && "bad address family"), function GetPeerName, file ../src/tcp_wrap.cc, line 237. Fixes #2870.
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index c99fe473976..68052942024 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -67,6 +67,13 @@ uv_pipe_t* PipeWrap::UVHandle() {
}
+Local<Object> PipeWrap::Instantiate() {
+ HandleScope scope;
+ assert(!pipeConstructor.IsEmpty());
+ return scope.Close(pipeConstructor->NewInstance());
+}
+
+
PipeWrap* PipeWrap::Unwrap(Local<Object> obj) {
assert(!obj.IsEmpty());
assert(obj->InternalFieldCount() > 0);