From 99c9d19184fdd46ae88464d7a608aac57a530634 Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Thu, 1 Dec 2011 13:24:28 -0800 Subject: binding for uv_pipe_pending_instances --- src/pipe_wrap.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/pipe_wrap.cc') 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 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::New(t->GetFunction()); target->Set(String::NewSymbol("Pipe"), pipeConstructor); @@ -142,6 +146,21 @@ Handle PipeWrap::Bind(const Arguments& args) { } +#ifdef _WIN32 +Handle 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 PipeWrap::Listen(const Arguments& args) { HandleScope scope; -- cgit v1.2.3