]> git.sesse.net Git - vlc/commit
Hmm, damn stupid fd_set implementation by Winsock does of course not
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Apr 2006 12:22:25 +0000 (12:22 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Apr 2006 12:22:25 +0000 (12:22 +0000)
commit81ced0140dbfc564366cb8fcaabae3fd206f96b6
tree893414d4ba3834b625979aca499f57e145c5e5de
parent561a7d3da8626cdb3a5972919a275e666325b72e
Hmm, damn stupid fd_set implementation by Winsock does of course not
work like any other one: it's actually thirty two times as big than the
POSIX ones for any given FD_SETSIZE, plus FD_SET and FD_ISSET are O(n)
instead of O(1). But at least, the mingw implementations of FD_SET has
built-in overflow checks.

Also, Winsock insists on returning big socket numbers, so we can't drop
those above FD_SETSIZE or we have no TCP/IP support at all, anyway.
src/network/io.c