Hi Andrzej, On Fri, Mar 23, 2012 at 12:31 PM, Andrzej K. Haczewski <[email protected]> wrote: > There is one thing that bothers me though: why does the scheme I used > works for ZeroMQ 3.1.0 and CrossroadsIO, as I tired both and they work > with registering FD right away with no recv() calls in between > connect() and epoll(), and it doesn't work for ZeroMQ 2.1. >
I haven't look at the examples but the differences are, at least: 1. zeromq 3 uses eventfd instead of socketpair to wakeup application thread 2. zeromq 2 uses single notification channel to for both zmq_send and zmq_recv, so you *must* try to do zmq_recv after you have just done zmq_send, as Robert pointed out (I'm not sure it's not the case for zmq3) -- Paul _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
