zeromq / cppzmq

Header-only C++ binding for libzmq
http://www.zeromq.org
MIT License
1.98k stars 756 forks source link

multipart_t send/recv inconsistent with socket_t #643

Open jwmelto opened 1 month ago

jwmelto commented 1 month ago

The interface to zmq::socket_t was updated to deprecate using the C flags (such as ZMQ_DONTWAIT), preferring instead enum classes (zmq::recv_flags::dontwait).

However, the zmq::multipart_t::send and recv functions still take integer flags arguments, instead of the enumerations.

It seems that, for consistency, these methods should use the enum classes.

gummif commented 5 days ago

There is now support for sending and receiving multipart (zmq::send_multipart) that have consistent interface. They make the multipart_t class pretty much deprecated.