Thread (38 messages) flat view 38 messages, 10 authors, 2016-06-15

Re: MinGW port usable

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:42:52

"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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help