Last change
on this file was a4f5200, checked in by dportnoy <devnull@…>, 14 years ago |
Added a message spec for client/server communication
|
-
Property mode
set to
100644
|
File size:
842 bytes
|
Line | |
---|
1 | Message Spec
|
---|
2 |
|
---|
3 | Message_Type Sender Contents Description
|
---|
4 |
|
---|
5 | LOGIN Client [username],[password]
|
---|
6 | ANON_LOGIN Client N/A Sent if the client wants an anonymous login
|
---|
7 | LOGIN_ACK Server N/A Server accepted login. Maybe sends additional info, like stats
|
---|
8 | ANON_LOGIN_ACK Server [username] Server determines a username for the anon user
|
---|
9 | LOGIN_ERR Server Error message Indicates an error with the login, probably a wrong password
|
---|
10 |
|
---|
11 | GAME_INFO Server Info about one game When a player joins the lobby, server sends one of these
|
---|
12 | (See below for format) for each game that's currently looking for players. The
|
---|
13 | server also sends one (containing all info about the game)
|
---|
14 | each time something about an open game changes
|
---|
15 |
|
---|
16 | GAME_INFO format:
|
---|
17 |
|
---|
18 | [name],[current players],[max players]
|
---|
Note:
See
TracBrowser
for help on using the repository browser.