[zeromq-dev] polling for messages
azeffertt at cambridgesys.com
Tue Mar 27 10:02:43 CEST 2012
Thanks for the info.
On 26 March 2012 20:11, Lourens Naudé <lourens at methodmissing.com> wrote:
> 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
>>> Thanks in advance,
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
More information about the zeromq-dev