… | |
… | |
2 | <html> |
2 | <html> |
3 | <head> |
3 | <head> |
4 | <title>KGS Protocol Description</title> |
4 | <title>KGS Protocol Description</title> |
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
6 | <!-- |
6 | <!-- |
7 | Copyright (C) 2003 Marc Lehmannn <pcg@goof.com> |
7 | Copyright (C) 2003,2004 Marc Lehmannn <pcg@goof.com> |
8 | |
8 | |
9 | You can redistribute and/or modify this document under the terms of |
9 | You can redistribute and/or modify this document under the terms of |
10 | the GNU General Public License as published by the Free Software |
10 | the GNU General Public License as published by the Free Software |
11 | Foundation; either version 2 of the License, or (at your option) any |
11 | Foundation; either version 2 of the License, or (at your option) any |
12 | later version. |
12 | later version. |
… | |
… | |
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.71 $</h1> |
26 | <h1>$Revision: 1.72 $</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 |
32 | structures in the protocol. Adapting it to other languages should be |
32 | structures in the protocol. Adapting it to other languages should be |
33 | almost trivial.</p> |
33 | almost trivial (and partly has been done).</p> |
34 | |
34 | |
35 | <p>If you feel you need to update the visual appearance of this |
35 | <p>If you feel you need to update the visual appearance of this |
36 | document, feel free to look at <tt>doc/doc2html.xsl</tt> and improve |
36 | document, feel free to look at <tt>doc/doc2html.xsl</tt> and improve |
37 | it.</p> |
37 | it.</p> |
38 | |
38 | |
… | |
… | |
83 | href="http://rfc1950.x42.com/">rfc1951</a>).</p> |
83 | href="http://rfc1950.x42.com/">rfc1951</a>).</p> |
84 | |
84 | |
85 | <p>All messages have the same header:</p> |
85 | <p>All messages have the same header:</p> |
86 | |
86 | |
87 | <struct name="message_header"> |
87 | <struct name="message_header"> |
88 | <member name="_unknown" type="U16"/> |
|
|
89 | <member name="length" type="U16"/> |
88 | <member name="length" type="U16"/> |
90 | |
89 | |
91 | <p>The length is the length of the full message including the header.</p> |
90 | <p>The length is the length of the full message including the header.</p> |
92 | |
91 | |
93 | <p>Beginning with version 2.5.x, a number is xored into the low |
92 | <p>Beginning with version 2.5.x, a number is xored into the low |