X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network.h;h=de64d44e60a115f2db9d4bf7e997deecf0233c35;hb=9385ff1868a052d92d60c0b49aa03848460b1916;hp=16594e84184c1f01ad8519142d7f48fca77986c2;hpb=22f62f001f21d1b91fefd9fc495c122d9ddf205a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index 16594e8..de64d44 100644 --- a/network.h +++ b/network.h @@ -10,6 +10,7 @@ #include "steam.h" #include "network_msg.h" #include "highscores.h" +#include "addon_types.h" static int network_scores_updated = 0; @@ -42,19 +43,21 @@ struct { u8 app_symmetric_key[ 1024 ]; u32 app_key_length; EServerMode auth_mode; - - int name_update; HSteamNetConnection remote; ESteamNetworkingConnectionState state; f64 last_attempt, last_frame; u32 retries; + + i32 network_info; } static network_client = { .state = k_ESteamNetworkingConnectionState_None, .auth_mode = eServerModeAuthentication, - .name_update = 1 }; +static int packet_minsize( SteamNetworkingMessage_t *msg, u32 size ); +static void network_send_item( enum addon_type type ); + #endif /* NETWORK_H */