[zeromq-dev] polling for messages
Alex Zeffertt
azeffertt at cambridgesys.com
Tue Mar 27 10:02:43 CEST 2012
Thanks for the info.
-- Alex
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
> triggered.
>
> - 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>
>> wrote:
>>>
>>> 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
>>>
>>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list