[zeromq-dev] zmq_sendv
john skaller
skaller at users.sourceforge.net
Tue Feb 7 17:29:56 CET 2012
I have just implemented:
// XSI vector I/O
#if ZMQ_HAVE_UIO
#include <sys/uio.h>
#else
struct iovec
{
void *iov_base;
size_t iov_len;
};
#endif
// Send multiple messages.
//
// If flag bit ZMQ_SNDMORE is set the vector is treated as
// a single multi-part message, i.e. the last message has
// ZMQ_SENDMORE bit switched off.
//
int zmq_sendv (void *s_, iovec *a_, size_t count_, int flags_)
This is a 0MQ version of XSI writev function. It will send
multiple single messages, or, a single multi-part message.
[zmq_recvv may be a bit trickier ...]
--
john skaller
skaller at users.sourceforge.net
More information about the zeromq-dev
mailing list