I came across libev about two months ago, and gave it a try: implemented a simple dead-loop server which just prints the client’s address and port, like this:
# ./server
Connection from ::ffff:192.168.1.7:59362
......
P.S., the code can be downloaded here.