Brian Candler wrote:
> On Wed, Apr 21, 2010 at 01:28:06PM +0200, Martin Sustrik wrote:
>> The main problem here (and that's a reoccurring issue) is the 0MQ
>> sockets cannot be polled on because they aren't real file
>> descriptors.
>>
>> I can imagine a small wrapper library on top of 0MQ that would
>> intercept the system BSD socket API and forward the calls either to
>> OS (in case of OS file descriptors) or to 0MQ (in case of 0MQ
>> sockets).
> 
> It's all very well intercepting the socket library calls, but intercepting
> select() and epoll() etc, and making them work with these 'fake' sockets, is
> going to be hard I think.

It's actually pretty easy.

Martin
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to