"H. Peter Anvin" wrote:
Erf... I dug through this, and it seems that WriteFile only works on a
socket if it has an OVERLAPPED argument now, because the socket is
opened for overlapping I/O.
Guess, what? When I use WSASocket() instead of socket() to explicitly
create a non-overlapped socket, plus _open_osfhandle(), it works!
This does not seem to be that new a behavior, since I observed all the
failures on Windows 2000.
Thanks a lot for your tip!
-- Hannes