|
WarWorld - Session Termination Protocol as of 05/01/2000 NOTE: The '<','>' characters below are not parts of the message structure! NOTE: All messages end with '\0' for easy processing via strcmp() etc. NOTE: All numeric values are integers.
Client-Server-Client
When is a session terminated?
There are two possibilities:
1. A player wins. In other words, all units on the battlefield belong to a single player. 2. A player terminates the session explicitly. In other words, disconnects.
Winning
Server: "QUIT\0" * This causes the clients to disconnect.
Quitting
Client: "QUIT\0" * The client disconnects itself after sending this message! |