[zeromq-dev] zmq_poll
Martin Sustrik
sustrik at 250bpm.com
Wed May 12 09:33:37 CEST 2010
Serge Aleynikov wrote:
> Thanks for the explanation! I think I'll put together implementation of
> these three functions when I get some time. However, turning 0MQ
> sockets into POSIX would be a much cleaner solution...
All it requires is a library that wraps 0MQ API and turns void* socket
handles to fds (int) and vice versa The fds assigned to 0MQ sockets
should be above maximal number of file descriptors allowed to be open
simultaneously by the OS. That way collisions with real fds can be avoided.
Then, standard poll() should be overloaded to use zmq_poll under the covers.
It seems easier then messing with 0MQ internals IMO.
Martin
More information about the zeromq-dev
mailing list