mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
export HandleWrap Unref Ref in tcp/udp/timer/pipe
This commit is contained in:
parent
5bb2fe660e
commit
19d43f852e
@ -84,6 +84,7 @@ void PipeWrap::Initialize(Handle<Object> target) {
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "close", HandleWrap::Close);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "unref", HandleWrap::Unref);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "ref", HandleWrap::Ref);
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "readStart", StreamWrap::ReadStart);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "readStop", StreamWrap::ReadStop);
|
||||
|
@ -96,6 +96,9 @@ void TCPWrap::Initialize(Handle<Object> target) {
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "close", HandleWrap::Close);
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "ref", HandleWrap::Ref);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "unref", HandleWrap::Unref);
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "readStart", StreamWrap::ReadStart);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "readStop", StreamWrap::ReadStop);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "shutdown", StreamWrap::Shutdown);
|
||||
|
@ -52,6 +52,8 @@ class TimerWrap : public HandleWrap {
|
||||
constructor->SetClassName(String::NewSymbol("Timer"));
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "close", HandleWrap::Close);
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "ref", HandleWrap::Ref);
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "unref", HandleWrap::Unref);
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "start", Start);
|
||||
NODE_SET_PROTOTYPE_METHOD(constructor, "stop", Stop);
|
||||
|
@ -110,6 +110,9 @@ void UDPWrap::Initialize(Handle<Object> target) {
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "setBroadcast", SetBroadcast);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "setTTL", SetTTL);
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "ref", HandleWrap::Ref);
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "unref", HandleWrap::Unref);
|
||||
|
||||
target->Set(String::NewSymbol("UDP"),
|
||||
Persistent<FunctionTemplate>::New(t)->GetFunction());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user