[zeromq-dev] native select call

Doron Somech somdoron at gmail.com
Thu May 19 18:29:36 CEST 2016

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

The ready to receive FD doesn't 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 EAGAIN.

The recv method also handle the incoming command even if no message
On May 19, 2016 16:52, "Arnaud Loonstra" <arnaud at sphaero.org> 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 I'm kind of lost.

PyZMQ writes a bit about it but only tells to avoid using zmq.FD.

I'm 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?


zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160519/8b772575/attachment.htm>

More information about the zeromq-dev mailing list