equal
deleted
inserted
replaced
57 |
57 |
58 typedef struct NetworkClientInfo { |
58 typedef struct NetworkClientInfo { |
59 uint16 client_index; // Index of the client (same as ClientState->index) |
59 uint16 client_index; // Index of the client (same as ClientState->index) |
60 char client_name[NETWORK_CLIENT_NAME_LENGTH]; // Name of the client |
60 char client_name[NETWORK_CLIENT_NAME_LENGTH]; // Name of the client |
61 byte client_lang; // The language of the client |
61 byte client_lang; // The language of the client |
62 byte client_playas; // As which player is this client playing (PlayerID) |
62 PlayerID client_playas; // As which player is this client playing (PlayerID) |
63 uint32 client_ip; // IP-address of the client (so he can be banned) |
63 uint32 client_ip; // IP-address of the client (so he can be banned) |
64 Date join_date; // Gamedate the player has joined |
64 Date join_date; // Gamedate the player has joined |
65 char unique_id[NETWORK_NAME_LENGTH]; // Every play sends an unique id so we can indentify him |
65 char unique_id[NETWORK_NAME_LENGTH]; // Every play sends an unique id so we can indentify him |
66 } NetworkClientInfo; |
66 } NetworkClientInfo; |
67 |
67 |
186 bool NetworkServerStart(void); |
186 bool NetworkServerStart(void); |
187 bool NetworkClientConnectGame(const char *host, uint16 port); |
187 bool NetworkClientConnectGame(const char *host, uint16 port); |
188 void NetworkReboot(void); |
188 void NetworkReboot(void); |
189 void NetworkDisconnect(void); |
189 void NetworkDisconnect(void); |
190 |
190 |
191 VARDEF bool _networking; ///< are we in networking mode? |
|
192 VARDEF bool _network_server; ///< network-server is active |
191 VARDEF bool _network_server; ///< network-server is active |
193 VARDEF bool _network_available; ///< is network mode available? |
192 VARDEF bool _network_available; ///< is network mode available? |
194 |
193 |
195 #else /* ENABLE_NETWORK */ |
194 #else /* ENABLE_NETWORK */ |
196 /* Network function stubs when networking is disabled */ |
195 /* Network function stubs when networking is disabled */ |