Mingw doesn't like write() to socket

Marc Lehmann schmorp at schmorp.de
Wed Dec 8 21:08:31 CET 2010


On Wed, Dec 08, 2010 at 02:21:25AM +0100, Bert Belder <H.Belder at student.TUDelft.NL> wrote:
> > So the mystery is sitll there.
> 
> I think I found out what the problem is.
> 
> It's not really a mingw limitation but a windows limitation.

I can't quite agree, from my findings.

> 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.

> I'm wondering - Sure you tested libev on windows; which windows version
> and toolchain did/do you use?

I use these three environments:

- msvc6
- activestate perl
- cygwin

Normally on windows 2000. I did verify that libev works on windows xp,
vista, and windows 7 with the event pipe, at least at one time (binaries
compiled on w2k though).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list