problem with buffering/bioskey under winboard
Posted: 03 Aug 2005, 17:48
Hi all,
today I added winboard support to my engine and while the part I thought would cause problems went smoothly I have again problems in an area I thought I have a working solution.
The problem is that winboard doesn?t show any analysis output when my engine is switched to analyze mode. It works under Arena but doesn?t work under winboard.
A buffering problem I concluded and made sure that there was no buffering anymore but now I got another problem. Winboard sends constantly a dot (?.\n?) to the engine and that stopps my search now immediately cause my bioskey() function relies on a buffer it reads with fgets(). Now the search stopps if only a keyboard hit is detected or if winboard sends the dot to the engine, of course.
Anyway, I?m wondering now if there is a clean solution to that problem as I would like to use the bioskey() function for both UCI and winboard as they are sharing the same search. The strange thing is that playing works well under winboard only when switching to analyze mode I have this problem.
Anyone has and idea/approach to solve that problem?
Thanks a lot for any suggestions.
Roman
today I added winboard support to my engine and while the part I thought would cause problems went smoothly I have again problems in an area I thought I have a working solution.
The problem is that winboard doesn?t show any analysis output when my engine is switched to analyze mode. It works under Arena but doesn?t work under winboard.
A buffering problem I concluded and made sure that there was no buffering anymore but now I got another problem. Winboard sends constantly a dot (?.\n?) to the engine and that stopps my search now immediately cause my bioskey() function relies on a buffer it reads with fgets(). Now the search stopps if only a keyboard hit is detected or if winboard sends the dot to the engine, of course.
Anyway, I?m wondering now if there is a clean solution to that problem as I would like to use the bioskey() function for both UCI and winboard as they are sharing the same search. The strange thing is that playing works well under winboard only when switching to analyze mode I have this problem.
Anyone has and idea/approach to solve that problem?
Thanks a lot for any suggestions.
Roman