summaryrefslogtreecommitdiff
path: root/src/udp_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-02-13 16:09:03 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-02-13 16:11:20 +0100
commit7bdd05bd66607886d633332e1397550d9b8d9b39 (patch)
tree459c80d81efb317a0f220cb67116f16eb94e30bc /src/udp_wrap.h
parent2d069c52107b02999476c8a2aee5cf2b190b8d12 (diff)
downloadnode-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.h2
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);