Mingw doesn't like write() to socket
W.C.A. Wijngaards
wouter at NLnetLabs.nl
Thu Dec 9 10:39:11 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On 12/08/2010 09:08 PM, Marc Lehmann wrote:
> On Wed, Dec 08, 2010 at 02:21:25AM +0100, Bert Belder <H.Belder at student.TUDelft.NL> wrote:
>> Sockets are opened in overlapped mode by default (I'm not sure about
>> earlier windows versions, but on Vista and later for sure).
>
> I don't really test much on vista, the tcp stack seems to be near to
> unusable on that box.
On vista, sockets work much like XP, I tested that. Sockets are not
opened in a weird mode. (I did not use libev in those tests; libev
could potentially act differently; depending on its code). This was
mingw/XP and mingw/vista. The same software also worked mingw/w7.
As for POSIX: it is not compatible, WaitforMultipleEvents is close, but
64 limit and requires the application to inform the event-code about the
return value of write calls. (code uses network sockets).
So, I would say Marc is right.
Best regards,
Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk0Ao78ACgkQkDLqNwOhpPiEoQCdGQKp1jjXaU1fjnm+Bc0D2Rwe
0uYAn28D6YogN4n1v3lSPw1kODxNXHJH
=4K6n
-----END PGP SIGNATURE-----
More information about the libev
mailing list