diff options
author | Will Young <lost.networking@gmail.com> | 2016-07-23 23:30:58 +0300 |
---|---|---|
committer | Matteo Collina <hello@matteocollina.com> | 2017-09-14 18:03:19 +0300 |
commit | 4ae0afb12b6d29c8bb743c4fd560a91fd626b558 (patch) | |
tree | f360e0424068d2332af2ee6a7555481fc987043c /src/udp_wrap.h | |
parent | cba206fa24e6ab15cad23ee7d44fa444f110582e (diff) |
dgram: added setMulticastInterface()
Add wrapper for uv's uv_udp_set_multicast_interface which provides the
sender side mechanism to explicitly select an interface. The
equivalent receiver side mechanism is the optional 2nd argument of
addMembership().
PR-URL: https://github.com/nodejs/node/pull/7855
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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 36f670a2e15..5be603d62e3 100644 --- a/src/udp_wrap.h +++ b/src/udp_wrap.h @@ -50,6 +50,8 @@ class UDPWrap: public HandleWrap { static void RecvStop(const v8::FunctionCallbackInfo<v8::Value>& args); static void AddMembership(const v8::FunctionCallbackInfo<v8::Value>& args); static void DropMembership(const v8::FunctionCallbackInfo<v8::Value>& args); + static void SetMulticastInterface( + const v8::FunctionCallbackInfo<v8::Value>& args); static void SetMulticastTTL(const v8::FunctionCallbackInfo<v8::Value>& args); static void SetMulticastLoopback( const v8::FunctionCallbackInfo<v8::Value>& args); |