[zeromq-dev] recvmsg deprecated

Andrew Hume andrew at research.att.com
Wed May 15 17:11:13 CEST 2013


ack.

i was confused by the fraternal twins zmq_recvmsg and zmq_msg_recv.
i remember the discussion, but not that renaming issue until now.

	thanks

On May 15, 2013, at 7:52 AM, Pieter Hintjens wrote:

> On Wed, May 15, 2013 at 4:35 PM, Andrew Hume <andrew at research.att.com> wrote:
> 
>> how do people use zmq_recv now? do they assume a packet size limit?
>> and how can they tell if they lost data?
> 
> What you want are zmq_msg_send and zmq_msg_recv.
> 
> The zmq_send/zmq_recv functions were added to 0MQ/3.0 and broke the
> API, causing a lot of pain. As you point out there's no way to know if
> you lost data. In fact they work well for simple cases, but since then
> we changed the rules about API changes:
> 
> * No changes to functions that are being used
> * No reusing old names for new functionality
> * Change by adding new functions and slowly deprecating old ones
> 
> In 3.0, zmq_send/recv took over the old names which were renamed to
> zmq_sendmsg/zmq_recvmsg. Since this forced every application to
> change, I took the chance of moving those to zmq_msg_send/recv to
> create a consistent zmq_msg API.
> 
> We did discuss this extensively on the list.
> 
> Hope this helps.
> 
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev


-----------------------
Andrew Hume
623-551-2845 (VO and best)
973-236-2014 (NJ)
andrew at research.att.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130515/f125969d/attachment.htm>


More information about the zeromq-dev mailing list