[zeromq-dev] zmq_poll coexisting with other sockets
Pieter Hintjens
ph at imatix.com
Wed Aug 11 21:53:44 CEST 2010
On Wed, Aug 11, 2010 at 8:56 PM, do000 dos000 <dos000.mail at gmail.com> wrote:
> I wanted to confirm if the zmq_poll can be mixed with other (non poll based)
> sockets . I was under the impression that you either user zmq_poll for all
> zmq sockets or you don't in the same application. Can you please confirm.
As far as I understand it: a thread can either block on a single
socket operation, or poll a set of sockets and then do non-blocking
operations on those sockets.
Check out Matt Weinstein's reactor pattern:
http://www.zeromq.org/docs:labs#toc3, that may be what you're looking
for.
-Pieter
More information about the zeromq-dev
mailing list