There are many example thread based web servers online, but I haven't really seen anything that gives a good example of an event-loop based one (without being very complex, e.g. lighttp and nginx).
Are there any? If not, what should I read/look at to help me learn how to make a server of this sort? (This includes asynchronous IO in C, etc.)
I already understand the basics of how event-loop based programming works, especially in higher level languages like Python, but I need to be able to implement one in C.
Here is one which is part of TupleServer source that uses libevent.