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:
authorIgor Zinkovsky <igorzi@microsoft.com>2011-12-02 01:24:28 +0400
committerIgor Zinkovsky <igorzi@microsoft.com>2011-12-02 01:57:47 +0400
commit99c9d19184fdd46ae88464d7a608aac57a530634 (patch)
tree287c3ace057470fc591c145cc1e65cc4d27ee21a /src/pipe_wrap.cc
parentdd4b280d8cb50bf818f2fae9f8e47f9f219e8328 (diff)
binding for uv_pipe_pending_instances
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 0d0a0045764..a2a4203a804 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -96,6 +96,10 @@ void PipeWrap::Initialize(Handle<Object> target) {
NODE_SET_PROTOTYPE_METHOD(t, "connect", Connect);
NODE_SET_PROTOTYPE_METHOD(t, "open", Open);
+#ifdef _WIN32
+ NODE_SET_PROTOTYPE_METHOD(t, "setPendingInstances", SetPendingInstances);
+#endif
+
pipeConstructor = Persistent<Function>::New(t->GetFunction());
target->Set(String::NewSymbol("Pipe"), pipeConstructor);
@@ -142,6 +146,21 @@ Handle<Value> PipeWrap::Bind(const Arguments& args) {
}
+#ifdef _WIN32
+Handle<Value> PipeWrap::SetPendingInstances(const Arguments& args) {
+ HandleScope scope;
+
+ UNWRAP
+
+ int instances = args[0]->Int32Value();
+
+ uv_pipe_pending_instances(&wrap->handle_, instances);
+
+ return v8::Null();
+}
+#endif
+
+
Handle<Value> PipeWrap::Listen(const Arguments& args) {
HandleScope scope;