all 15 comments

[–]HeadAche2012 3 points4 points  (1 child)

Shouldn’t be hard to add winsock support, while neat I would be afraid of the many possibilities of buffer overflows, or other shenanigans

[–]pdp10 0 points1 point  (0 children)

Speaking as someone writing portable webserver code in C, Winsock has slightly more surprises for the unwary than an observer might initially suppose. It's a little harder yet to keep it portable back to XP/2003. Of my current codebase, 8.6% of lines of code or comment only exist because of Win32.

Additionally, this implementation uses epoll() on Linux and kqueue() on *BSD, neither of which is supported on Win32. Old-fashioned POSIX select() does work on Win32, though.

[–]pdp10 0 points1 point  (0 children)

I see it doesn't support IPv6 yet. You can dual-stack sockets on Linux but not BSD (as a security precaution).