summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-12 16:04:32 +0000
committertruelight <truelight@openttd.org>2004-12-12 16:04:32 +0000
commit0e79314353e7cf50677125c362835aabc475631c (patch)
treefca8d0b096bbb58854b3d8bb840a8213aa9f8395 /network.h
parent5221f35182beb396615dc8bcd2e902828a83aa65 (diff)
downloadopenttd-0e79314353e7cf50677125c362835aabc475631c.tar.xz
(svn r1026) -Add: [Network] Added unique id, so in network, each client has an
unique id (generated via md5)
Diffstat (limited to 'network.h')
-rw-r--r--network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/network.h b/network.h
index 173f43e62..6b197e64d 100644
--- a/network.h
+++ b/network.h
@@ -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