You are not logged in.

#1 2011-02-13 17:54:02

vkumar
Member
Registered: 2008-10-06
Posts: 166

a simple, parallel wrapper around BSD sockets, libevent, and pthreads

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

Board footer

Powered by FluxBB