-
Notifications
You must be signed in to change notification settings - Fork 8
Packet Format
Thomas Cherryhomes edited this page Dec 20, 2020
·
1 revision
All packets are UDP packets, no larger than 505 bytes.
All packets have the basic form:
<SL SH> <SN> <PT> <PD> [...]
- 16-bit session ID in little endian form.
- an 8 bit sequence number, incremented on each new packet
- an 8 bit PACKET TYPE number, for 256 possible packet types.
- The rest of the payload is packet data specific to each packet type. up to 500 bytes.
PT | Description |
---|---|
00 | Heartbeat ping |
01 | User Enters Server |
02 | User Exits Server |
03 | User Moves to Room |
04 | User Joins Game in Room |
05 | User Leaves Game in Room |
06 | User Sends Public Message to Room |
07 | User Sends Private Message to Another User |
08 | User Starts new Game in Room |
09 | User Ends Game in Room |
0A | User Lists Other Users in Room |
0B | User Lists Games being Played in Room |
0C | User Lists Games being Gathered in Room |
0D | User Indicates Ready to Play |
0E | Reserved |
0F | Reserved |
10 | Developer Registers Game for Play |
11 | Reserved |
12 | Reserved |
13 | Reserved |
14 | Reserved |
15 | Reserved |
16 | Reserved |
17 | Reserved |
18 | Reserved |
19 | Reserved |
1A | Reserved |
1B | Reserved |
1C | Reserved |
1D | Reserved |
1E | Reserved |
1F | Reserved |
20 | Comma Delimited Numerical Data |
21 | String Data |