X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network.h;h=ee0f334d5cb04156dda91cac833cdcbd8cd04b9c;hb=5ee174baa9b2c30e01dc0ca0dfa38f916f805636;hp=1644982917a49d4b5d08e7bf1abb72bfaf396f40;hpb=0945c6c301e38138b6ac54a02d5b3aea602de526;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network.h b/network.h index 1644982..ee0f334 100644 --- a/network.h +++ b/network.h @@ -24,7 +24,6 @@ static void network_end(void); */ static void network_submit_highscore( u32 trackid, u16 points, u16 time ); - /* * Game endpoints are provided with the same names to allow running without a * network connection. @@ -112,6 +111,23 @@ static void server_connect(void) hSteamNetworkingSockets, &remoteAddr, 0, NULL ); } +static void send_auth_ticket(void) +{ + u32 size = sizeof(netmsg_auth) + steam_app_ticket_length; + netmsg_auth *auth = malloc(size); + + auth.inetmsg_id = k_inetmsg_auth; + auth.ticket_length = steam_app_ticket_length; + for( int i=0; i