diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-03-16 16:31:38 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-03-16 16:34:12 -0700 |
commit | 19e53512b838a051523995311ab0ac0df1728678 (patch) | |
tree | e23d99b56e54d7e5db6532da2890e49b6b8f5285 /src/node_os.cc | |
parent | 6111c17a0e34fbd867660aedc2ae1a4c754492e0 (diff) | |
download | android-node-v8-19e53512b838a051523995311ab0ac0df1728678.tar.gz android-node-v8-19e53512b838a051523995311ab0ac0df1728678.tar.bz2 android-node-v8-19e53512b838a051523995311ab0ac0df1728678.zip |
os.getNetworkInterfaces()
Diffstat (limited to 'src/node_os.cc')
-rw-r--r-- | src/node_os.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node_os.cc b/src/node_os.cc index 1b985276c4..077e207a72 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -161,6 +161,12 @@ static Handle<Value> GetLoadAvg(const Arguments& args) { return scope.Close(loads); } + +static Handle<Value> GetInterfaceAddresses(const Arguments& args) { + return Platform::GetInterfaceAddresses(); +} + + #ifdef __MINGW32__ static Handle<Value> OpenOSHandle(const Arguments& args) { HandleScope scope; @@ -186,6 +192,7 @@ void OS::Initialize(v8::Handle<v8::Object> target) { NODE_SET_METHOD(target, "getCPUs", GetCPUInfo); NODE_SET_METHOD(target, "getOSType", GetOSType); NODE_SET_METHOD(target, "getOSRelease", GetOSRelease); + NODE_SET_METHOD(target, "getInterfaceAddresses", GetInterfaceAddresses); #ifdef __MINGW32__ NODE_SET_METHOD(target, "openOSHandle", OpenOSHandle); |