[zeromq-dev] Getting started with ruby bindings

Martin Sustrik sustrik at 250bpm.com
Wed Apr 21 17:10:17 CEST 2010


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



More information about the zeromq-dev mailing list