I have now updated the libev examples. It took me a while, but during that time I have been hard at work converting two of our network daemons to use libev. As of today the upcoming Westermo WeOS uses libev in both its rstpd and igmpd implementations.

Updated example code:

Enjoy, and feel free to contact me if you have any questions or comments on the code. For libev specific help I can really recommend their mailing list!