You are not logged in.
I've found myself writing a few small servers in C over the years. Dealing with the sockets API has never been fun for me, so I decided to sit down and consolidate the work I've done into an easy-to-use library.
The result was evt-server: https://github.com/vedantk/evt-server
It uses libevent to watch for incoming connections. You can choose how many threads you want to use to process accepted connections (or you can do things sequentially -- no issue). Here's an example usage of the library: https://github.com/vedantk/evt-server/b … evt_test.c
The design of the server was inspired by memcached (see threads.txt in their src/doc/).
div curl F = 0
Offline