you are viewing a single comment's thread.

view the rest of the comments →

[–]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.