There are many examples of thread-based web servers on the Internet, but I have not seen anything that gives a good example of an event-based loop (without complexity, such as lighttp and nginx).
Are there any If not, what should I read / look to help me learn how to create such a server? (This includes asynchronous IO in C, etc.)
I already understand the basics of how event loop programming works, especially in higher-level languages ββlike Python, but I need to be able to implement them in C.
source share