[zeromq-dev] Easy way to send/recv messages?
matt_weinstein at yahoo.com
Tue Aug 3 11:41:30 CEST 2010
It's pretty early in the morning here, but are you just proposing copy
These would be trivial to implement as helper functions, I would
On Aug 3, 2010, at 3:40 AM, Martin Sustrik wrote:
> Hi all,
> Reading Pieter's manual to 0MQ messages here:
> I've come to realise how complex the whole thing is.
> Now imagine there would be API that'll look like this:
> int zmq_send (void *s, const void *buf, size_t len, int flags);
> int zmq_recv (void *s, void *buf, size_t len, int flags);
> Note the ease of use and the fact that it maps 1:1 to POSIX socket
> Existing zero-copy message API can then be provided as a separate
> set of
> int zmq_sendmsg (void *s, zmq_msg_t *msg, int flags);
> int zmq_recvmsg (void *s, zmq_msg_t *msg, int flags);
> The above would break backward compatibility so it's not an option
> however, it looks like something to keep in mind for the future.
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
More information about the zeromq-dev