(svn r1026) -Add: [Network] Added unique id, so in network, each client has an

unique id (generated via md5)
This commit is contained in:
truelight
2004-12-12 16:04:32 +00:00
parent 5221f35182
commit 0e79314353
10 changed files with 520 additions and 5 deletions

View File

@@ -87,6 +87,7 @@ typedef struct NetworkClientInfo {
byte client_playas; // As which player is this client playing
uint32 client_ip; // IP-address of the client (so he can be banned)
uint16 join_date; // Gamedate the player has joined
char unique_id[NETWORK_NAME_LENGTH]; // Every play sends an unique id so we can indentify him
} NetworkClientInfo;
typedef struct NetworkGameList {
@@ -125,6 +126,7 @@ VARDEF char _network_player_name[NETWORK_NAME_LENGTH];
VARDEF char _network_default_ip[NETWORK_HOSTNAME_LENGTH];
VARDEF uint16 _network_own_client_index;
VARDEF char _network_unique_id[NETWORK_NAME_LENGTH]; // Our own unique ID
VARDEF uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
VARDEF uint32 _frame_counter_max; // To where we may go with our clients