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 _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev