[zeromq-dev] feeback on new poller API

brunobodin . brunobodin at gmail.com
Mon Mar 13 10:39:49 CET 2017


Hi

following discussion about migration from 4.1.2 to 4.2.2, I moved my code
to the new polling API.

I have a question about zmq_poller_wait : when I call it with a timeout of
0, the outcome can be that
no socket is ready (which is possible in my design), but in that case,
zmq_poller_wait return  -1

I think we should be able to distinguish between an error during the call
and the case where
there is no socket ready ?
so maybe returnd code shoud be -1 on error, 0 when there is no event, 1
otherwise ?

Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170313/71e72d32/attachment.htm>


More information about the zeromq-dev mailing list