src/network/network.h
changeset 7807 b10fc6c5d081
parent 7564 fa54ab680589
child 7998 9cf9f9153262
equal deleted inserted replaced
7806:2876d9bfa05a 7807:b10fc6c5d081
    69 	char client_name[NETWORK_CLIENT_NAME_LENGTH];   // Name of the client
    69 	char client_name[NETWORK_CLIENT_NAME_LENGTH];   // Name of the client
    70 	byte client_lang;                               // The language of the client
    70 	byte client_lang;                               // The language of the client
    71 	PlayerID client_playas;                         // As which player is this client playing (PlayerID)
    71 	PlayerID client_playas;                         // As which player is this client playing (PlayerID)
    72 	uint32 client_ip;                               // IP-address of the client (so he can be banned)
    72 	uint32 client_ip;                               // IP-address of the client (so he can be banned)
    73 	Date join_date;                                 // Gamedate the player has joined
    73 	Date join_date;                                 // Gamedate the player has joined
    74 	char unique_id[NETWORK_NAME_LENGTH];            // Every play sends an unique id so we can indentify him
    74 	char unique_id[NETWORK_UNIQUE_ID_LENGTH];       // Every play sends an unique id so we can indentify him
    75 };
    75 };
    76 
    76 
    77 enum NetworkJoinStatus {
    77 enum NetworkJoinStatus {
    78 	NETWORK_JOIN_STATUS_CONNECTING,
    78 	NETWORK_JOIN_STATUS_CONNECTING,
    79 	NETWORK_JOIN_STATUS_AUTHORIZING,
    79 	NETWORK_JOIN_STATUS_AUTHORIZING,
   125 
   125 
   126 VARDEF char _network_player_name[NETWORK_CLIENT_NAME_LENGTH];
   126 VARDEF char _network_player_name[NETWORK_CLIENT_NAME_LENGTH];
   127 VARDEF char _network_default_ip[NETWORK_HOSTNAME_LENGTH];
   127 VARDEF char _network_default_ip[NETWORK_HOSTNAME_LENGTH];
   128 
   128 
   129 VARDEF uint16 _network_own_client_index;
   129 VARDEF uint16 _network_own_client_index;
   130 VARDEF char _network_unique_id[NETWORK_NAME_LENGTH]; // Our own unique ID
   130 VARDEF char _network_unique_id[NETWORK_UNIQUE_ID_LENGTH]; // Our own unique ID
   131 
   131 
   132 VARDEF uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
   132 VARDEF uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
   133 VARDEF uint32 _frame_counter_max; // To where we may go with our clients
   133 VARDEF uint32 _frame_counter_max; // To where we may go with our clients
   134 
   134 
   135 VARDEF uint32 _last_sync_frame; // Used in the server to store the last time a sync packet was sent to clients.
   135 VARDEF uint32 _last_sync_frame; // Used in the server to store the last time a sync packet was sent to clients.