zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.53k stars 2.34k forks source link

Simplify setsockopt #4583

Closed mrx23dot closed 11 months ago

mrx23dot commented 11 months ago

Issue description

could we simplify this?

int relaxed = 1;
zmq_setsockopt (s, ZMQ_REQ_RELAXED, &relaxed, sizeof (relaxed));

e.g. to zmq_setsockopt (s, ZMQ_REQ_RELAXED, 1, NULL);

in python it's so nicer zpub.setsockopt(zmq.IPV4ONLY, 1)

Environment

bluca commented 11 months ago

No, as that's an API breaking change