[zeromq-dev] zmq_recv question

David Cheney dcheney at peaxy.net
Wed Mar 26 22:31:31 CET 2014

I've downloaded, built, and installed the czmq from

When I attempt to use it I encounter this error:
In file included from /usr/local/include/czmq.h:68, from src/tcp_ping.c:8:
/usr/local/include/zrex.h:78: error: expected declaration specifiers or
'...' before 'uint'
scons: *** [obj/Debug/tcp_ping.o] Error 1
scons: building terminated because of errors.

/usr/local/include/zrex.h:78 makes use of uint, which apparently is
undefined? Using "unsigned" fixed the problem for me.

Let me know if you'd like this posted at the issue tracker.


On Mon, Mar 24, 2014 at 10:21 PM, Joe Lin <jlin at peaxy.net> wrote:

> Hi,
> Got a question regarding this function
> *int zmq_recv (void *socket, void *buf, size_t len, int flags);*
> According to the instruction:
> 'The *zmq_recv()* function shall receive a message from the socket
> referenced by the*socket* argument and store it in the buffer referenced
> by the *buf* argument. Any bytes exceeding the length specified by the
> *len* argument shall be truncated'
> I would call this function several time in a row for a multi-frame
> message. My question is that if a frame exceeds the specified 'len'
> argument, do I get the data for the next frame or do I get the remaining
> data of the current frame?
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140326/464461ca/attachment.htm>

More information about the zeromq-dev mailing list