jeremycw / httpserver.h

Single header library for writing non-blocking HTTP servers in C
MIT License
1.78k stars 143 forks source link

add support for Windows #63

Open nickav opened 1 year ago

nickav commented 1 year ago

Perhaps I'm one of the only developers who likes to do web things on Windows, but it would be awesome if this project had support for Win32.

I'm not entirely sure what the equivalent of kqueue / epoll on Windows would be, but according to the docs I think it would be Overlapped I/O. There's also this thread, which also suggests WaitForMultipleObjects among other things. I'm not sure if using these APIs would cleanly fit into the platform specific section you've got at the bottom or would require a slightly larger refactor.

I might take a stab at this at some point even just for my own edification, but wanted to get your thoughts!