Lobby Protocol Version 1
The Lobby project communicates via the protocol described below.
When something is sent between the server and client the message consists of a header and and the
contents of whatever the message represents by.
The Header
The header consists of 4 fields.
The first field is an integer representing the version of the protocol, this number is
Integer.MIN_VALUE at the time of writing. It is 4 bytes (Integer length) long
The second field is a byte representing the class of message
The third field is another byte representing the number of message within the class
The last field is an integer representing how long the message is excluding the header as we have
already read that.
Field Specifications
Name Represnted by
Type type
Name name
Max Class mc
Max Players mp
Cur Players cp
Password pw
Game Options go
Message m
ID id
PID pid
Game State gs
Jar name jn
Class Name cn
Email email
Name Represented By
Field Separator -128
Info Separator -127
Each Field has whatever represents it according to the table above of it written out first and then the
Field separator is written and then the contents of the field are written out next after the contents an
Info Separator is written out.