[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] Re: A problem of using select in gmp_check.

From: Jens Yllman
Subject: Re: [gnugo-devel] Re: A problem of using select in gmp_check.
Date: Sun, 11 Apr 2004 10:20:47 +0200

select() has always been there in network versions of windows. The problem is that it only handles network connections. Not files or pipes as Unix version does. So I'm not sure this code actually works if you compile native windows. Under cygwin it should work, maybe. Cause cygwin should emulate this if not available in windows.


At 22:04 2004-03-30, you wrote:
> I'm address@hidden
> Hello Dan. I have been reading GNU Go programs a little by little.
> In interface/gmp.c gmp_check(), I feel a question following lines ?
> >    select(ge->inFile + 1, &readReady, NULL, NULL, &noTime);
> >    if (!gsleep && !FD_ISSET(ge->inFile, &readReady))
> >      return(gmp_nothing);
> >    result = getPacket(ge, out1, out2, error);

Interesting, never thought select() was portable.  I used it in Quarry
in a GTP test program, but otherwise I'm not quite familiar with that,
so I'll leave this issue to somebody else.  Just surprised to know that
there is select() on Windows (since GNU Go works on Windows too).


gnugo-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]