Add ZMQ_ROUTER_NOTIFY draft socket option (#3213)

* Add ZMQ_ROUTER_NOTIFY draft socket option
This commit is contained in:
Szekely Gyorgy
2018-08-15 09:54:08 +02:00
committed by Luca Boccassi
parent 4738bed5b6
commit 2cdad3d0ce
13 changed files with 445 additions and 3 deletions

View File

@@ -243,7 +243,8 @@ zmq::options_t::options_t () :
zap_enforce_domain (false),
loopback_fastpath (false),
multicast_loop (true),
zero_copy (true)
zero_copy (true),
router_notify (0)
{
memset (curve_public_key, 0, CURVE_KEYSIZE);
memset (curve_secret_key, 0, CURVE_KEYSIZE);
@@ -1149,6 +1150,16 @@ int zmq::options_t::getsockopt (int option_,
}
break;
#ifdef ZMQ_BUILD_DRAFT_API
case ZMQ_ROUTER_NOTIFY:
if (is_int) {
*value = router_notify;
return 0;
}
break;
#endif
default:
#if defined(ZMQ_ACT_MILITANT)
malformed = false;