Mingw doesn't like write() to socket
wouter at NLnetLabs.nl
Thu Dec 9 10:39:11 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the libev