Re: MinGW port usable
- From
Johannes Sixt <j.sixt@eudaptics.com>
- Date
- Feb 2, 2007, 08:55 UTC
- Message-ID
- <45C2FC68.47A7F966@eudaptics.com>
- In-Reply-To
- <45C2F648.9030105@zytor.com>
"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