Author: Jean Bouchat
Date: 07:27:34 02/08/04
Go up one level in this thread
It seems to work! Thanks to Omid David Tabibi.
We make the test with the following lines:
PeekNamedPipe(stdin, stream, 256, &lpBytesRead, &lpTotalBytesAvail,
&lpBytesLeftThisMessage);
if(lpTotalBytesAvail!=0)
{
scanf("%s",stream);
if (!strcmp(stream, "?"))
{
quitter=1;
}
}
dropped in the search loop that exits when "quitter"== 1.
This seems very similar to your function ReadStdIn.
However, PeekNamedPipe seems realy slow. We are thinking about calling the
PeekNamedPipe function only every 100000(?) nodes. It will delay the answer of
our program but we hope it is not a problem for winboard.
Jean
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.