Commit 6a627ace authored by Dahko's avatar Dahko

Fixed wrong assert in zmq_recv

zmq_recv returns bytes count, not error code, so 'assert (rc==0)' behaved completely wrong
parent 5ced51b7
......@@ -44,8 +44,8 @@ EXAMPLE
zmq_msg_t msg;
rc = zmq_msg_init (&msg);
assert (rc == 0);
rc = zmq_recv (socket, &msg, 0);
assert (rc == 0);
int nbytes = zmq_recv (socket, &msg, 0);
assert (nbytes != -1);
----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment