mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
added newly added socket options to all language bindings, P2P model changed to PUB/SUB for throughput tests
This commit is contained in:
@@ -158,11 +158,18 @@ int zmq::socket_base_t::setsockopt (int option_, const void *optval_,
|
||||
return 0;
|
||||
|
||||
case ZMQ_MCAST_LOOP:
|
||||
if (optvallen_ != sizeof (bool)) {
|
||||
if (optvallen_ != sizeof (int64_t)) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((int64_t) *((int64_t*) optval_) == 0 ||
|
||||
(int64_t) *((int64_t*) optval_) == 1) {
|
||||
options.use_multicast_loop = (bool) *((int64_t*) optval_);
|
||||
} else {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
options.use_multicast_loop = optval_;
|
||||
return 0;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user