libev and zeromq

Vishal Ahuja vahuja4 at
Tue Oct 15 22:35:27 CEST 2013

Hi All,

I am wanting to use libev and zeromq to design an asynchronous proxy like
application. But I found that is not straightforward to monitor zmq sockets
using libev:

I am not able to follow the above article properly. Can someone please
explain how to go about doing this using libev. Thanks!

I did find some code on the net, and made minor changes to it because the
original was using an older zeromq version. It is a very simple server
which uses a zeromq REP socket. But the problem is that the recv call
always returns a non-zero value, indicating that the recv failed. Any ideas?

Please find the code attached.
Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.c
Type: text/x-csrc
Size: 2548 bytes
Desc: not available
URL: <>

More information about the libev mailing list