some UCI protocol issues/questions

Discussion of chess software programming and technical issues.

Moderator: Ras

bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: some UCI protocol issues/questions

Post by bob »

Gian-Carlo Pascutto wrote:
bob wrote: No it is not "baseless". If you ignore a token, you take a step down a slippery slope since the next token might depend on the context of the previous one.
Extending the protocol in that way (altering the expected parsing of an understood command by making it context dependent on a not understood one) would be terminally stupid yes. Which is why nobody does that.
One doesn't "ignore" flags in TCP/IP. So I am not sure what that is about. You don't have to use any/all of the flags if you don't want to. Unless you are talking about the real "reserved" flags that have _no_ explicit meaning. Not sure how that applies to this circumstance...

Answer:

It should do _exactly_ what the protocol says it should do. no more, no less. You _do_ know what that is, correct???


What do you think a TCP stack should do if one of the reserved flags is set? Drop the packet? Or ignore the flag?