I've downloaded, built, and installed the czmq from
http://download.zeromq.org/czmq-2.1.0.tar.gz

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.

Dave


On Mon, Mar 24, 2014 at 10:21 PM, Joe Lin <[email protected]> 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
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to