From cc59e25f5edb24fee5bc34103b7a2b0b2cb1302e Mon Sep 17 00:00:00 2001 From: ggtaylor Date: Tue, 11 Feb 2014 15:56:27 -0800 Subject: [PATCH] Add socket option "ZMQ_ROUTER_HANDOVER" (ZMQ 4.1) Reference: http://api.zeromq.org/4-1:zmq-setsockopt#toc24 --- binding.cc | 1 + lib/index.js | 1 + windows/include/zmq.h | 1 + 3 files changed, 3 insertions(+) diff --git a/binding.cc b/binding.cc index dd97284..82b5f8a 100644 --- a/binding.cc +++ b/binding.cc @@ -1100,6 +1100,7 @@ namespace zmq { opts_int.insert(40); // ZMQ_XPUB_VERBOSE opts_int.insert(41); // ZMQ_ROUTER_RAW opts_int.insert(42); // ZMQ_IPV6 + opts_int.insert(56); // ZMQ_ROUTER_HANDOVER opts_int64.insert(3); // ZMQ_SWAP opts_int64.insert(8); // ZMQ_RATE diff --git a/lib/index.js b/lib/index.js index 09f1627..ca55ec5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -79,6 +79,7 @@ var longOptions = { , ZMQ_XPUB_VERBOSE: 40 , ZMQ_ROUTER_RAW: 41 , ZMQ_IPV6: 42 + , ZMQ_ROUTER_HANDOVER: 56 }; Object.keys(longOptions).forEach(function(name){ diff --git a/windows/include/zmq.h b/windows/include/zmq.h index 9678b87..c55e167 100644 --- a/windows/include/zmq.h +++ b/windows/include/zmq.h @@ -250,6 +250,7 @@ ZMQ_EXPORT int zmq_msg_set (zmq_msg_t *msg, int option, int optval); #define ZMQ_TCP_ACCEPT_FILTER 38 #define ZMQ_DELAY_ATTACH_ON_CONNECT 39 #define ZMQ_XPUB_VERBOSE 40 +#define ZMQ_ROUTER_HANDOVER 56 /* Message options */