[zeromq-dev] native select call

Arnaud Loonstra arnaud at sphaero.org
Tue May 24 17:56:28 CEST 2016

Thanks Doron, I indeed found the info on the list. As for anyone else 
dealing with Python's asyncore module; I've created a simple dispatcher 
class for your convenience:




On 2016-05-19 18:29, Doron Somech wrote:
> Someone actually asked about it few weeks ago on the list, try to
> search.
> Anyway you can use socket FD but you have to do all the heavy lifting
> yourself.
> The ready to receive FD doesnt mean anything to the user, for the
> library it means the socket received new command need processing.
> To handle incoming messages you should call recv with NO_BLOCK until
> The recv method also handle the incoming command even if no message
> available.
> On May 19, 2016 16:52, "Arnaud Loonstra" <arnaud at sphaero.org [4]>
> wrote:
>> This must have been asked many times and I recall working with it
>> before but was it possible to use a normal/native/regular select
>> call on a zmq socket? I know about the edge and level triggering but
>> Im kind of lost.
>> PyZMQ writes a bit about it but only tells to avoid using zmq.FD.
>> http://pyzmq.readthedocs.io/en/latest/eventloop.html [1]
>> Im trying to get a zmq socket into a python asyncore application.
>> Unfortunaltely asyncore uses a native select() (or poll() if it
>> finds it). So either I need to rewrite the asyncore module or I make
>> the socket work with the native select().
>> Any pointers?
>> Rg,
>> Arnaud
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org [2]
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev [3]

More information about the zeromq-dev mailing list