mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 23:42:32 +02:00
Merge pull request #627 from dr7ana/router-raw
Add configurable sockopt for raw router sockets
This commit is contained in:
commit
301871aa1d
@ -364,6 +364,10 @@ TEST_CASE("socket check integral options", "[socket]")
|
|||||||
check_integral_opt<int>(zmq::sockopt::router_mandatory, router,
|
check_integral_opt<int>(zmq::sockopt::router_mandatory, router,
|
||||||
"router_mandatory", true);
|
"router_mandatory", true);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ZMQ_ROUTER_RAW
|
||||||
|
check_integral_opt<int>(zmq::sockopt::router_raw, router, "router_raw",
|
||||||
|
true);
|
||||||
|
#endif
|
||||||
#ifdef ZMQ_ROUTER_NOTIFY
|
#ifdef ZMQ_ROUTER_NOTIFY
|
||||||
check_integral_opt<int>(zmq::sockopt::router_notify, router, "router_notify");
|
check_integral_opt<int>(zmq::sockopt::router_notify, router, "router_notify");
|
||||||
#endif
|
#endif
|
||||||
|
3
zmq.hpp
3
zmq.hpp
@ -1625,6 +1625,9 @@ ZMQ_DEFINE_INTEGRAL_BOOL_UNIT_OPT(ZMQ_ROUTER_MANDATORY, router_mandatory, int);
|
|||||||
#ifdef ZMQ_ROUTER_NOTIFY
|
#ifdef ZMQ_ROUTER_NOTIFY
|
||||||
ZMQ_DEFINE_INTEGRAL_OPT(ZMQ_ROUTER_NOTIFY, router_notify, int);
|
ZMQ_DEFINE_INTEGRAL_OPT(ZMQ_ROUTER_NOTIFY, router_notify, int);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ZMQ_ROUTER_RAW
|
||||||
|
ZMQ_DEFINE_INTEGRAL_OPT(ZMQ_ROUTER_RAW, router_raw, int);
|
||||||
|
#endif
|
||||||
#ifdef ZMQ_ROUTING_ID
|
#ifdef ZMQ_ROUTING_ID
|
||||||
ZMQ_DEFINE_ARRAY_OPT_BINARY(ZMQ_ROUTING_ID, routing_id);
|
ZMQ_DEFINE_ARRAY_OPT_BINARY(ZMQ_ROUTING_ID, routing_id);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user