… | |
… | |
21 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 | --> |
22 | --> |
23 | </head> |
23 | </head> |
24 | <body> |
24 | <body> |
25 | |
25 | |
26 | <h1>$Revision: 1.68 $</h1> |
26 | <h1>$Revision: 1.69 $</h1> |
27 | |
27 | |
28 | <h1>KGS Protocol Description</h1> |
28 | <h1>KGS Protocol Description</h1> |
29 | |
29 | |
30 | <p>This XML document describes the KGS protocol. It is also used |
30 | <p>This XML document describes the KGS protocol. It is also used |
31 | to automatically generate the perl parser for all the messages and |
31 | to automatically generate the perl parser for all the messages and |
… | |
… | |
581 | |
581 | |
582 | <message type="440a" name="game_done" src="client"> |
582 | <message type="440a" name="game_done" src="client"> |
583 | <p>Sent by the client to mark the game as done.</p> |
583 | <p>Sent by the client to mark the game as done.</p> |
584 | <member name="channel" type="U16"/> |
584 | <member name="channel" type="U16"/> |
585 | <member name="id" type="U32"/> |
585 | <member name="id" type="U32"/> |
586 | <p>Probably some ID field to make sure that the client responds to the correct done click.</p> |
586 | <p>An id field (start at one please) to make sure that the client responds to the correct done click.</p> |
587 | </message> |
587 | </message> |
588 | |
588 | |
589 | <message type="440c" name="claim_win" src="client"> |
589 | <message type="440c" name="claim_win" src="client"> |
590 | <p>Used by the client to claim a win.</p> |
590 | <p>Used by the client to claim a win.</p> |
591 | <member name="channel" type="U16"/> |
591 | <member name="channel" type="U16"/> |
… | |
… | |
1167 | |
1167 | |
1168 | <message type="440a" name="game_done" src="server"> |
1168 | <message type="440a" name="game_done" src="server"> |
1169 | <p>Send by the server when one of the players sends a done.</p> |
1169 | <p>Send by the server when one of the players sends a done.</p> |
1170 | <member name="channel" type="U16"/> |
1170 | <member name="channel" type="U16"/> |
1171 | <member name="id" type="U32"/> |
1171 | <member name="id" type="U32"/> |
1172 | <p>Probably some ID field to make sure that the client responds to the correct done click.</p> |
1172 | <p>An id field to make sure that the client responds to the correct done click.</p> |
1173 | <p>The high bit has some function I don't know. It must be cleared when replying.</p> |
1173 | <p>The high bit has the "please press done again" warning function, i.e. if set, opponent has changed board.</p> |
1174 | <member name="black" type="flag"/> |
1174 | <member name="black" type="flag"/> |
1175 | <member name="white" type="flag"/> |
1175 | <member name="white" type="flag"/> |
1176 | </message> |
1176 | </message> |
1177 | |
1177 | |
1178 | <message type="440b" name="final_result" src="server"> |
1178 | <message type="440b" name="final_result" src="server"> |