What's the best library to use for writing non-blocking TCP server

I want to write a custom TCP server for my service. It needs to use non-blocking sockets, so that I don’t depend on one thread per connection, but don’t really want to deal with low-level details of using epoll/etc directly. I can’t really find anything.

Is there a library that I perhaps missed that would make this possible?

The best option I could find would be using libxev, but that’s still too low level for my taste.

Hm, or maybe using libuv via C would be the best option.

Besides libxev there is iofthetiger

1 Like