[zeromq-dev] Examples and returned errors

Marco Trapanese marcotrapanese at gmail.com
Thu May 31 15:21:14 CEST 2012


Il 31/05/2012 13:52, Pieter Hintjens ha scritto:

>> In C++ I get an exception with the same code (invalid argument).
>
> You can perhaps debug that and find out what code is raising the
> exception and EINVAL.


I apologize for my little knowledge.
What do you mean when you say "you can debug that"?

Ok, setsockopt return 0. So we know it should be ok.
But:

   printf("errno = %d\n", zmq_errno());
   int rc = zmq_setsockopt (publisher, ZMQ_HWM, &hwm, sizeof (hwm));
   printf("errno = %d\n", zmq_errno());

returns:

errno = 0
errno = 22

We know that before setsockopt errno = 0, and right after is 22.
What part of the code should I debug? And how?

Marco




More information about the zeromq-dev mailing list