Hi all,
Re: https://github.com/zeromq/libzmq/pull/247
Something that I raised a year or so ago, which is still irksome:
zmq_msg_t msg;
zmq_msg_init_size (&msg, 6);
zmq_recvmsg (socket, &msg, 0);
...
zmq_msg_close (&msg);
vs.
zmq_msg_t msg;
zmq_msg_init_size (&msg, 6);
zmq_msg_recv (socket, &msg, 0);
...
zmq_msg_close (&msg);
The simple send/recv methods are part of the POSIXish 0MQ API. It is
cute but deceptive to fit sendmsg there too, because it cannot be used
except with the rest of the msg API. And yet it's inconsistent with
the msg API. This change adds consistent methods, and lets us
deprecate zmq_sendmsg/zmq_recvmsg over time.
This follows the policy at http://www.zeromq.org/docs:policies#toc2.
-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev