Write a simple server using libev

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.