]> git.localhorst.tv Git - blank.git/blob - doc/protocol
client-side implementation of login packet
[blank.git] / doc / protocol
1 Packets
2 =======
3
4 Ping
5 ----
6
7 To tell the other side we're still alive.
8 Both server and client will send this if they haven't sent something in
9 a while.
10
11 Code: 0
12 Payload: none
13
14
15 Login
16 -----
17
18 Sent from client to serveri as a request to join. The server may
19 respond negatively if the player name is already taken or some cap has
20 been reached.
21
22 Code: 1
23 Payload:
24         player name, max 32 byte UTF-8 string,
25         shorter names should be zero terminated