[zeromq-dev] ZMQ_STREAM interraction with ZMTP ?
Laurent Alebarde
l.alebarde at free.fr
Fri Dec 6 22:12:28 CET 2013
Hi Pieter,
This time, you save my night (last time you saved my day). It is
terrific to have "la tête dans le guidon" and to not see so obvious things !
Many thanks :-) . I am going to go on now.
Cheers,
Laurent
Le 06/12/2013 20:02, Pieter Hintjens a écrit :
> On Fri, Dec 6, 2013 at 4:26 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:
>> Here is my test code (one single commit in my master) :
>> https://github.com/lalebarde/libzmq/commit/2d38f19249d2a4f5dcc4d1d5ec907a092d6a8266
> This code is not correct:
>
> // Frontend socket talks to clients over TCP
> void *frontend = zmq_socket (ctx, ZMQ_ROUTER);
> assert (frontend);
> int as_server = 1;
> int rc = zmq_setsockopt (frontend, ZMQ_STREAM, &as_server, sizeof (int));
> assert (rc == 0);
>
> It should say:
>
> void *frontend = zmq_socket (ctx, ZMQ_STREAM);
> assert (frontend);
>
> Please re-read the documentation for ZMQ_STREAM and look at the test case.
>
> -Pieter
> _______________________________________________
> 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/20131206/2557f075/attachment.htm>
More information about the zeromq-dev
mailing list