projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync time between clients to utc
[carveJwlIkooP6JGAAIwe30JlM.git]
/
network.h
diff --git
a/network.h
b/network.h
index fc4829d6d1bb3468fb0db3595aaf867be63ad814..ef6876a79b843c2e2de39ef634331cb075816895 100644
(file)
--- a/
network.h
+++ b/
network.h
@@
-60,10
+60,13
@@
struct {
}
*request_buffer;
vg_pool request_pool;
}
*request_buffer;
vg_pool request_pool;
+
+ char server_adress[64];
}
static network_client = {
.auth_mode = eServerModeAuthentication,
.state = k_ESteamNetworkingConnectionState_None,
}
static network_client = {
.auth_mode = eServerModeAuthentication,
.state = k_ESteamNetworkingConnectionState_None,
+ .server_adress = "46.101.34.155"
};
static int packet_minsize( SteamNetworkingMessage_t *msg, u32 size );
};
static int packet_minsize( SteamNetworkingMessage_t *msg, u32 size );
@@
-74,4
+77,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 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 */
#endif /* NETWORK_H */