/*
* Interface
*/
-//#define SR_USE_LOCALHOST
/* Call it at start; Connects us to the gameserver */
static void network_init(void);
static network_client = {
.auth_mode = eServerModeAuthentication,
.state = k_ESteamNetworkingConnectionState_None,
- .server_adress = "46.101.34.155:27402"
+ .server_adress = "46.101.34.155"
};
static int packet_minsize( SteamNetworkingMessage_t *msg, u32 size );
static void network_publish_laptime( const char *mod_uid,
const char *route_uid, f64 lap_time );
+static int network_connected(void){
+ return network_client.state == k_ESteamNetworkingConnectionState_Connected;
+}
+
#endif /* NETWORK_H */