libev and zeromq
Vishal Ahuja
vahuja4 at gmail.com
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:
http://funcptr.net/2013/04/20/embedding-zeromq-in-the-libev-event-loop/
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,
Vishal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20131015/b7dbf7de/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.c
Type: text/x-csrc
Size: 2548 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20131015/b7dbf7de/attachment.c>
More information about the libev
mailing list