zeromq / cppzmq

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

zmq::recv_flags for receiving multipart messages #479

Closed brugr9 closed 3 years ago

brugr9 commented 3 years ago

The previous 4.3.1 flag ZMQ_RCVMORE is not replaced by any flag,. E.g., zmq::recv_flags::rcvmore would be nice.

gummif commented 3 years ago

That's actually a socket option, see zmq::sockopt::rcvmore (e.g. socket.get(zmq::sockopt::rcvmore)).

brugr9 commented 3 years ago

Thanks for your reply. Ok, previous cppzmq 4.3.1 based code was receiving multipart messages in two steps by socket_t->recv(&topic_, ZMQ_RCVMORE); and socket_t->recv(&msg_, ZMQ_DONTWAIT);

With cppzmq 4.3.2 I decided to use zmq::recv_multipart(...)

Solved.