X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network.h;h=3495c6a798a997f4cacc333d427ec9049f4e479c;hb=1b889e55df5f9c0a8a26daba03ffa21754d78230;hp=8c1d656133d004269e9c60059025fa78f98b6b64;hpb=6ba5c35d106d749a1ebafbd3cbe18c3a02f781d3;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index 8c1d656..3495c6a 100644 --- a/network.h +++ b/network.h @@ -17,7 +17,6 @@ /* * Interface */ -//#define SR_USE_LOCALHOST /* Call it at start; Connects us to the gameserver */ static void network_init(void); @@ -66,7 +65,7 @@ struct { 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 ); @@ -77,4 +76,8 @@ static void network_request_scoreboard( const char *mod_uid, 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 */