X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network.h;h=e6407eb031d619ed2ebb839813efeba8af53f6c4;hb=524c05104673b95ef0841d6ee90bcd24f9b829dc;hp=16594e84184c1f01ad8519142d7f48fca77986c2;hpb=22f62f001f21d1b91fefd9fc495c122d9ddf205a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index 16594e8..e6407eb 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 netmsg_playeritem_type type ); + #endif /* NETWORK_H */