Re: Network protocol for Expert QotW #23

Yitzchak Scott-Thoennes <[email protected]>
Newsgroups gmane.comp.lang.perl.qotw.discuss
Organization bs"d
Message-ID <[email protected]>
On Thu, Sep 09, 2004 at 09:42:10AM -0400, Daniel Martin wrote:
> - Any client (including spectators) may send to the server the command
>
> REFRESH

Hmm. A PLAYER1 client could have an option to start up a number of
SPECTATORs and have them REFRESH at a user-controlled rate to slow
things down :)

> CHOOSE #$&
> 
> where the three characters following the space correspond to responses
> "ONE", "TWO", or "THREE".  The server may also send this to the
> player1 client, though the player1 client is free to ignore it.

I think there should be an optional additional "piece number" added:

CHOOSE #$& 1

which starts at one for the first CHOOSE sent, and is incremented
by one for each successive choice.

Then the ONE, TWO and THREE commands would take an optional piece
number also (*only* if the server is sending the numbers).  If the
server recieves a command for a piece number that isn't the current
choice, it gets ignored.

This prevents quickly repeated DOWN from making ONE, TWO, or THREE
apply to a different piece than intended.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.