Handshake - Holy-Spirit-Scholar-Bowl/buzzer GitHub Wiki
The handshake is the sequence of messages sent when a client joins the server.
After a client connects, the server sends the name
command. The client responds with a name
command. The client information (the name, real name, team, and whether the user is host) are contained in the user
field in the command.
Now, the server knows who the client is. The server then informs the client of the host and buzzer. The server sends the host
command if there is a host. It will always send the buzzer
command to tell the client who (if anyone) has buzzed.
Provided the handshake has been executed successfully, the server will send the success
command to the client, marking the end of the handshake. The client may interpret this as a successful connection.
Lastly, the server sends the online
to all users.