Hi Gerhard, On Fri, Apr 27, 2012 at 11:41 AM, Gerhard Lipp <gel...@googlemail.com> wrote: >> Probably I don't understand the code. You must poll only for reading >> on ZMQ_FD. But every zmq_send and zmq_recv cosumes mailbox. >> Which means you must update you applications' state of readable >> and writable flags (I mean your IO framework doesn't know that >> socket became readable or writable). >> >> If you don't care about ZMQ_POLLOUT event, you still must check >> ZMQ_EVENTS for reading on each zmq_send. > > You are right, I am actually just waiting to be able to zmq_recv with > ZMQ_NOBLOCK. I dont care about the ZMQ_POLLOUT in this example. As the > docs state, either event is signaled by the mailbox (ZMQ_FD) becoming > ready to read (ev.READ). That is why i am checking for ZMQ_POLLIN > before entering the zmq_recv/zmq_send. >
So the real problem is misleading documentation? I think it would be nice if you'd update documentation in a way that's understandable for you, and send a pull request. -- Paul _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev