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 <[email protected]> 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
[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