[zeromq-dev] polling for messages

Lourens Naudé lourens at methodmissing.com
Mon Mar 26 21:11:55 CEST 2012

Hi Alex,

That'll be fine - the fd events are edge-triggered and would work with any
reactor implementation. Just remember to read until completion as the
notification can be for more than one message (zmq protocol is framed) as
well. Failure to do so will result in further notifications not being

- Lourens

On Monday, March 26, 2012, Pieter Hintjens <pieterh at gmail.com> wrote:
> Yes, it should work fine.
> On Mar 26, 2012 11:44 AM, "Alex Zeffertt" <azeffertt at cambridgesys.com>
>> Hi list,
>> I'm considering using czmq in my single threaded application.
>> However, the application is already using an event driven framework in
>> which a file descriptor has to be registered along with a callback
>> that is invoked when it becomes readable.
>> My question is: can I use the file descriptor returned by
>> zsockopt_fd() in this way, or would this break things  when I issue
>> zframe_recv_nowait()?
>> Thanks in advance,
>> Alex
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120326/3ee63e79/attachment.htm>

More information about the zeromq-dev mailing list