]> git.cworth.org Git - ttt/blobdiff - PROTOCOL
2005-12-01 Richard D. Worth <richard@theworths.org>
[ttt] / PROTOCOL
index c507ffeb27ca47eaa9c9098c301486b22916ffd3..d855cdf348780bc1edecce3e10e5ddb93d36d471 100644 (file)
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -59,7 +59,9 @@ Document Conventions
 
        WHO <username1> <games1> <username2> <games2> ...
 
-       lists connected users and the number of games they've won.
+       Lists connected users and the number of games they've won.
+
+       Possible errors: NONAMESET
 
     1.2.2. Message
 
@@ -69,6 +71,12 @@ Document Conventions
        
        MESSAGE
 
+       Sends a message to all connected users. The text must be a
+       single token. Use a quoted-string to include spaces in the
+       message text.
+
+       Possible errors: NONAMESET
+
     1.2.3. Help
 
        HELP { <command> }
@@ -111,7 +119,7 @@ Document Conventions
 
        INVITE
 
-       Possible errors: NOUSER, BUSY
+       Possible errors: NOUSER, BUSY, NONAMESET
 
     1.3.2. Accepting an invitation
 
@@ -121,6 +129,8 @@ Document Conventions
 
        ACCEPT
 
+       Possible errors: NONAMESET
+
 1.4. In-game commands
 
     1.4.1. Get the game contents
@@ -148,7 +158,7 @@ Document Conventions
         _|X|_
         X|O|O"
     
-       Possible errors: NOTINGAME
+       Possible errors: NOTINGAME, NONAMESET
     
     1.4.2. Part
     
@@ -160,7 +170,7 @@ Document Conventions
     
        Departs the current game
 
-       Possible errors: NOTINGAME
+       Possible errors: NOTINGAME, NONAMESET
     
     1.4.3. Making a move
 
@@ -177,7 +187,7 @@ Document Conventions
        3|4|5
        6|7|8
     
-       Possible errors: NOTINGAME, NOTYOURMOVE, NOTGRID
+       Possible errors: NOTINGAME, NOTYOURMOVE, NOTGRID, NONAMESET
     
 2. Asynchronous notification.  
 
@@ -254,7 +264,10 @@ Document Conventions
     
        ERROR NONAMESET
     
-       'helo' must be sent before any command other than 'quit'.
+       'helo' must be sent before any command other than 'help',
+       'version', 'quit'.
+
+       Possibly returned by: WHO MESSAGE INVITE ACCEPT SHOW PART MOVE
     
     3.1.2. Invalid name