Skip to content

Commit 03cfaae

Browse files
committed
Added integral sockopt -- "router_raw"
1 parent 3f6fe44 commit 03cfaae

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/socket.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ TEST_CASE("socket check integral options", "[socket]")
364364
check_integral_opt<int>(zmq::sockopt::router_mandatory, router,
365365
"router_mandatory", true);
366366
#endif
367+
#ifdef ZMQ_ROUTER_RAW
368+
check_integral_opt<int>(zmq::sockopt::router_raw, router, "router_raw",
369+
true);
370+
#endif
367371
#ifdef ZMQ_ROUTER_NOTIFY
368372
check_integral_opt<int>(zmq::sockopt::router_notify, router, "router_notify");
369373
#endif

zmq.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,9 @@ ZMQ_DEFINE_INTEGRAL_BOOL_UNIT_OPT(ZMQ_ROUTER_MANDATORY, router_mandatory, int);
16251625
#ifdef ZMQ_ROUTER_NOTIFY
16261626
ZMQ_DEFINE_INTEGRAL_OPT(ZMQ_ROUTER_NOTIFY, router_notify, int);
16271627
#endif
1628+
#ifdef ZMQ_ROUTER_RAW
1629+
ZMQ_DEFINE_INTEGRAL_OPT(ZMQ_ROUTER_RAW, router_raw, int);
1630+
#endif
16281631
#ifdef ZMQ_ROUTING_ID
16291632
ZMQ_DEFINE_ARRAY_OPT_BINARY(ZMQ_ROUTING_ID, routing_id);
16301633
#endif

0 commit comments

Comments
 (0)