forked from markopoloparadox/ProjectPerun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
States.txt
34 lines (34 loc) · 2.44 KB
/
States.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
*Format: ConnectionID - source - short description - format of data file.
*
*
*
* "0001" - Client - Sends a request to add a new user - data[connection, email, password];
* "0002" - Server - User with that Email adress already exists - data[connection];
* "0003" - Server - User has been added - data[connection];
* "0004" - Client - Send a request to login - data[connection, email, password, port];
* "0005" - Server - User not found - data[connection];
* "0006" - Server - Wrong password - data[connection];
* "0007" - Server - Connected - data[connection];
* "0008" - Client - Send an email to add as friend - data[connection, email];
* "0009" - Server - User has been added as friend - data[connection];
* "0010" - Server - User is already your friend - data[connection];
* "0011" - Client - Asks for list of friends - data[connection];
* "0012" - Server - Sends a list of all friends and their status - data[connection, friends[]];
* "0013" - Server - Sends a msg that you can't add yourself as friend - data[connection];
* "0014" - Server - Friend that user tried to add still hasn't approved friendship - data[connection, email];
* "0015" - Client - User has accepted or rejected another user's friendship request - data[connection, email, accept];
* "0016" - Server - Sends recent user's change (login, logout, started/stopped playing game) to his/her friends
* "0017" - Server - Sends friend request to user - data[connection, email];
* "0018" - Client - Check for update of gameslist.dat - data[connection, size, datatime];
* "0019" - Server - User's gameslist.dat is up to date - data[connection];
* "0020" - Server - Sends new version of requested file - data[connection, size, file];
* "0021" - Client - Create group chat - data[connection, usernames];
* "0022" - Server - Some user(s) has joined or left chat - data[connection, chatid, userlist, msg];
* "0023" - Server/Client - New msg for chat - data[connection, chatid, msg];
* "0024" - Client - Add new friend to chat - data[connection, chatid, msg, username];
* "0025" - Client - Exit chat - data[connection, chatid, msg];
* "0026" - User - User changed his/her custom status or his/her game status was changed - data[connection, custom_status, current_game];
* "0027" - User - User sends request for receiving game activity of some user - data[connection, email];
* "0028" - Server - Sends to user list of games which user with requested username has played - data[connection, stats[]];
*/