… | |
… | |
20 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | --> |
21 | --> |
22 | </head> |
22 | </head> |
23 | <body> |
23 | <body> |
24 | |
24 | |
25 | <h1>$Revision: 1.58 $</h1> |
25 | <h1>$Revision: 1.59 $</h1> |
26 | |
26 | |
27 | <h1>KGS Protocol Description</h1> |
27 | <h1>KGS Protocol Description</h1> |
28 | |
28 | |
29 | <p>This XML document describes the KGS protocol. It is also used |
29 | <p>This XML document describes the KGS protocol. It is also used |
30 | to automatically generate the perl parser for all the messages and |
30 | to automatically generate the perl parser for all the messages and |
… | |
… | |
1990 | |
1990 | |
1991 | <h4> |
1991 | <h4> |
1992 | <a name="C4305"></a>ORIGIN: CLIENT; |
1992 | <a name="C4305"></a>ORIGIN: CLIENT; |
1993 | MESSAGE: new_game</h4> |
1993 | MESSAGE: new_game</h4> |
1994 | NUMERIC TYPE (hex): 4305<p> |
1994 | NUMERIC TYPE (hex): 4305<p> |
1995 | <p>Unclear. Start a new game. |
1995 | <p>Create a new game.</p> |
1996 | <p>Clone: 00000: 20202020 20202020 20202020 20203238 28 |
|
|
1997 | 00010: 9d000543 0d000000 00000000 00130201 ...C............ |
|
|
1998 | 00020: 0000ffff ffffffff ffffffff 00000000 ..ÿÿÿÿÿÿÿÿÿÿ....</p> |
|
|
1999 | </p> |
|
|
2000 | </p> |
1996 | </p> |
2001 | <table border="1" width="100%"> |
1997 | <table border="1" width="100%"> |
2002 | <tr> |
1998 | <tr> |
2003 | <th width="10%">NAME</th> |
1999 | <th width="10%">NAME</th> |
2004 | <th width="8%">TYPE</th> |
2000 | <th width="8%">TYPE</th> |
… | |
… | |
2220 | </tr> |
2216 | </tr> |
2221 | </table> |
2217 | </table> |
2222 | |
2218 | |
2223 | <h4> |
2219 | <h4> |
2224 | <a name="C4400"></a>ORIGIN: CLIENT; |
2220 | <a name="C4400"></a>ORIGIN: CLIENT; |
2225 | MESSAGE: send_challenge</h4> |
2221 | MESSAGE: challenge</h4> |
2226 | NUMERIC TYPE (hex): 4400<p> |
2222 | NUMERIC TYPE (hex): 4400<p> |
2227 | Unclear. |
2223 | <p>Used to send challenges to existing games.</p> |
2228 | </p> |
2224 | </p> |
2229 | <table border="1" width="100%"> |
2225 | <table border="1" width="100%"> |
2230 | <tr> |
2226 | <tr> |
2231 | <th width="10%">NAME</th> |
2227 | <th width="10%">NAME</th> |
2232 | <th width="8%">TYPE</th> |
2228 | <th width="8%">TYPE</th> |
2233 | <th width="4%">VALUE</th> |
2229 | <th width="4%">VALUE</th> |
… | |
… | |
2246 | <b></b> |
2242 | <b></b> |
2247 | |
2243 | |
2248 | </td> |
2244 | </td> |
2249 | </tr> |
2245 | </tr> |
2250 | <tr> |
2246 | <tr> |
|
|
2247 | <td>challenge</td> |
|
|
2248 | <td>challenge</td> |
2251 | <td>black</td> |
2249 | <td> </td> |
2252 | <td>username</td> |
|
|
2253 | <td> </td> |
|
|
2254 | <td> |
|
|
2255 | |
|
|
2256 | |
|
|
2257 | </td> |
2250 | <td> |
2258 | <td> |
|
|
2259 | <b></b> |
|
|
2260 | |
|
|
2261 | </td> |
|
|
2262 | </tr> |
|
|
2263 | <tr> |
|
|
2264 | <td>white</td> |
|
|
2265 | <td>username</td> |
|
|
2266 | <td> </td> |
|
|
2267 | <td> |
|
|
2268 | More following... TREE or challenge. |
|
|
2269 | |
2251 | |
2270 | |
2252 | |
2271 | </td> |
2253 | </td> |
2272 | <td> |
2254 | <td> |
2273 | <b></b> |
2255 | <b></b> |
… | |
… | |
2589 | </td> |
2571 | </td> |
2590 | </tr> |
2572 | </tr> |
2591 | </table> |
2573 | </table> |
2592 | |
2574 | |
2593 | <h4> |
2575 | <h4> |
|
|
2576 | <a name="C440e"></a>ORIGIN: CLIENT; |
|
|
2577 | MESSAGE: req_undo</h4> |
|
|
2578 | NUMERIC TYPE (hex): 440e<p> |
|
|
2579 | </p> |
|
|
2580 | <table border="1" width="100%"> |
|
|
2581 | <tr> |
|
|
2582 | <th width="10%">NAME</th> |
|
|
2583 | <th width="8%">TYPE</th> |
|
|
2584 | <th width="4%">VALUE</th> |
|
|
2585 | <th>DESCRIPTION</th> |
|
|
2586 | <th width="10%">GUARD</th> |
|
|
2587 | </tr> |
|
|
2588 | <tr> |
|
|
2589 | <td>channel</td> |
|
|
2590 | <td>U16</td> |
|
|
2591 | <td> </td> |
|
|
2592 | <td> |
|
|
2593 | |
|
|
2594 | |
|
|
2595 | </td> |
|
|
2596 | <td> |
|
|
2597 | <b></b> |
|
|
2598 | |
|
|
2599 | </td> |
|
|
2600 | </tr> |
|
|
2601 | </table> |
|
|
2602 | |
|
|
2603 | <h4> |
2594 | <a name="C440f"></a>ORIGIN: CLIENT; |
2604 | <a name="C440f"></a>ORIGIN: CLIENT; |
2595 | MESSAGE: grant_undo</h4> |
2605 | MESSAGE: grant_undo</h4> |
2596 | NUMERIC TYPE (hex): 440f<p> |
2606 | NUMERIC TYPE (hex): 440f<p> |
2597 | Can be send after a req_undo message was received to grant the undo. |
2607 | Can be send after a req_undo message was received to grant the undo. |
2598 | </p> |
2608 | </p> |
… | |
… | |
3015 | <th width="4%">VALUE</th> |
3025 | <th width="4%">VALUE</th> |
3016 | <th>DESCRIPTION</th> |
3026 | <th>DESCRIPTION</th> |
3017 | <th width="10%">GUARD</th> |
3027 | <th width="10%">GUARD</th> |
3018 | </tr> |
3028 | </tr> |
3019 | <tr> |
3029 | <tr> |
3020 | <td>gametype</td> |
3030 | <td>type</td> |
3021 | <td>U16</td> |
3031 | <td>U8</td> |
|
|
3032 | <td> </td> |
|
|
3033 | <td> |
|
|
3034 | |
|
|
3035 | |
|
|
3036 | </td> |
|
|
3037 | <td> |
|
|
3038 | <b></b> |
|
|
3039 | |
|
|
3040 | </td> |
|
|
3041 | </tr> |
|
|
3042 | <tr> |
|
|
3043 | <td>ruleset</td> |
|
|
3044 | <td>U8</td> |
3022 | <td> </td> |
3045 | <td> </td> |
3023 | <td> |
3046 | <td> |
3024 | |
3047 | |
3025 | |
3048 | |
3026 | </td> |
3049 | </td> |
… | |
… | |
3174 | <b></b> |
3197 | <b></b> |
3175 | |
3198 | |
3176 | </td> |
3199 | </td> |
3177 | </tr> |
3200 | </tr> |
3178 | <tr> |
3201 | <tr> |
3179 | <td>gametype</td> |
3202 | <td>type</td> |
3180 | <td>U32</td> |
3203 | <td>U8</td> |
|
|
3204 | <td> </td> |
|
|
3205 | <td> |
|
|
3206 | |
|
|
3207 | |
|
|
3208 | </td> |
|
|
3209 | <td> |
|
|
3210 | <b></b> |
|
|
3211 | |
|
|
3212 | </td> |
|
|
3213 | </tr> |
|
|
3214 | <tr> |
|
|
3215 | <td>id</td> |
|
|
3216 | <td>U8</td> |
3181 | <td> </td> |
3217 | <td> </td> |
3182 | <td> |
3218 | <td> |
3183 | |
3219 | |
3184 | |
3220 | |
3185 | </td> |
3221 | </td> |
… | |
… | |
5970 | <tr> |
6006 | <tr> |
5971 | <td>game</td> |
6007 | <td>game</td> |
5972 | <td>game</td> |
6008 | <td>game</td> |
5973 | <td> </td> |
6009 | <td> </td> |
5974 | <td> |
6010 | <td> |
5975 | |
6011 | |
5976 | |
6012 | |
5977 | </td> |
6013 | </td> |
5978 | <td> |
6014 | <td> |
5979 | <b></b> |
6015 | <b></b> |
5980 | |
6016 | |
… | |
… | |
6252 | |
6288 | |
6253 | <h3>Game messages</h3> |
6289 | <h3>Game messages</h3> |
6254 | |
6290 | |
6255 | <h4> |
6291 | <h4> |
6256 | <a name="S4400"></a>ORIGIN: SERVER; |
6292 | <a name="S4400"></a>ORIGIN: SERVER; |
6257 | MESSAGE: upd_challenge</h4> |
6293 | MESSAGE: challenge</h4> |
6258 | NUMERIC TYPE (hex): 4400<p> |
6294 | NUMERIC TYPE (hex): 4400<p> |
6259 | Unclear. |
6295 | Unclear. |
6260 | </p> |
6296 | </p> |
6261 | <table border="1" width="100%"> |
6297 | <table border="1" width="100%"> |
6262 | <tr> |
6298 | <tr> |
… | |
… | |
6626 | <tr> |
6662 | <tr> |
6627 | <td>channel</td> |
6663 | <td>channel</td> |
6628 | <td>U16</td> |
6664 | <td>U16</td> |
6629 | <td> </td> |
6665 | <td> </td> |
6630 | <td> |
6666 | <td> |
6631 | |
|
|
6632 | |
6667 | |
6633 | |
6668 | |
6634 | </td> |
6669 | </td> |
6635 | <td> |
6670 | <td> |
6636 | <b></b> |
6671 | <b></b> |