Implement (unconditional) protocol auto-detection
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 29 Oct 2017 14:56:10 +0000 (15:56 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 29 Oct 2017 19:46:00 +0000 (20:46 +0100)
commit7937bbea6d9e0644cd8a5c39e2c6d6320368945a
tree48f1d3b1b231af257dedd50576dcbf220d853481
parent6926e4e389147249f23f054a243ea833cb8d15cb
Implement (unconditional) protocol auto-detection

By sending "uci" to the engine after the feature timeout expires,
and redoing the engine replacement with UCI ticked when "uciok" is
received, UCI engines will install properly even when they are first
assumed to be CECP engines. An extra timeout period is taken to wait
for the possible "uciok" response. If this expires too, the engine is
assumed to be WB v1.
  Adding the engine to the engine list had to be deferred until the
protocol is known. This means the "-protocolVersion 1" option can now
also automatically added to the engine line for v1 engines.
backend.c