[zeromq-dev] Examples and returned errors

Marco Trapanese marcotrapanese at gmail.com
Thu May 31 12:51:33 CEST 2012


Il 31/05/2012 12:22, Pieter Hintjens ha scritto:

> Try this code:
>
>    int rc = zmq_setsockopt (publisher, ZMQ_HWM,&hwm, sizeof (hwm));
>    err = zmq_errno();
>    printf("rc=%d errno%d\n", rc, err);


Now I get:

rc = 0;
errno = 22;

Even if the setsockopt call isn't failing I guess there is something 
wrong, right?

In C++ I get an exception with the same code (invalid argument).

Thanks again
Marco




More information about the zeromq-dev mailing list