The multipart send is already available in the C++ higher level libraries. I am sure other libraries based on zeromq will offer their own version.
https://github.com/zeromq/cppzmq/blob/master/zmq_addon.hpp#L45 From: zeromq-dev <[email protected]> On Behalf Of Al Grant Sent: 08 August 2018 16:10 To: ZeroMQ development list <[email protected]> Subject: Re: [zeromq-dev] Abandon a multipart message? On Wed, Aug 8, 2018 at 2:04 PM, James Harvey <[email protected]<mailto:[email protected]>> wrote: You could send a zero length message with no (SND_MORE) flag to signify that’s the last part. I could, or I could send a part with a special payload, but either way the sender and receiver have to agree on how to recognize an abandoned message. Also it consumes resources in the system needlessly (not just in transmission - the subscribers may have already allocated resources to deal with the earlier parts of the now abandoned message). An alternative approach would be to provide a single send API for multipart send (with "all-or-nothing" semantics), taking a vector of zmq_msg_t's. I've read http://hintjens.com/blog:84 and understand that there are alternatives to multipart for new designs. I'm just after something that I can use in fault-recovery in my existing multipart-based application.
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
