diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-13 16:09:03 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-13 16:11:20 +0100 |
commit | 7bdd05bd66607886d633332e1397550d9b8d9b39 (patch) | |
tree | 459c80d81efb317a0f220cb67116f16eb94e30bc /src/udp_wrap.h | |
parent | 2d069c52107b02999476c8a2aee5cf2b190b8d12 (diff) | |
download | node-new-7bdd05bd66607886d633332e1397550d9b8d9b39.tar.gz |
stream_wrap, udp_wrap: add read-only fd property
Expose the file descriptor as a read-only property on the internal
handle objects. Intended for debugging purposes, not part of the API
proper. The property is always null on Windows.
Fixes #4754.
Diffstat (limited to 'src/udp_wrap.h')
-rw-r--r-- | src/udp_wrap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udp_wrap.h b/src/udp_wrap.h index d06ed322e8..dc4ddfb8e4 100644 --- a/src/udp_wrap.h +++ b/src/udp_wrap.h @@ -10,6 +10,8 @@ namespace node { class UDPWrap: public HandleWrap { public: static void Initialize(v8::Handle<v8::Object> target); + static v8::Handle<v8::Value> GetFD(v8::Local<v8::String>, + const v8::AccessorInfo&); static v8::Handle<v8::Value> New(const v8::Arguments& args); static v8::Handle<v8::Value> Bind(const v8::Arguments& args); static v8::Handle<v8::Value> Send(const v8::Arguments& args); |