7 #include "vg/vg_steam.h"
8 #include "vg/vg_steam_networking.h"
9 #include "vg/vg_steam_http.h"
10 #include "vg/vg_steam_auth.h"
11 #include "network_msg.h"
12 #include "network_common.h"
13 #include "highscores.h"
14 #include <sys/socket.h>
16 #define CLIENT_KNOWLEDGE_SAME_WORLD0 0x1
17 #define CLIENT_KNOWLEDGE_SAME_WORLD1 0x2
18 #define CLIENT_KNOWLEDGE_FRIENDS 0x4 /* TODO? */
21 HSteamNetPollGroup client_group
;
22 EServerMode auth_mode
;
24 struct gameserver_client
{
28 HSteamNetConnection connection
;
29 char username
[ NETWORK_USERNAME_MAX
];
33 struct gameserver_item
{
34 char uid
[ADDON_UID_MAX
];
37 items
[k_netmsg_playeritem_max
];
41 clients
[ NETWORK_MAX_PLAYERS
];
43 u8 client_knowledge_mask
[ (NETWORK_MAX_PLAYERS
*(NETWORK_MAX_PLAYERS
-1))/2 ];
44 u8 app_symmetric_key
[ k_nSteamEncryptedAppTicketSymmetricKeyLen
];
46 /* TODO: Consider removing this */
48 int monitor_clients
[ 4 ];
51 .auth_mode
= eServerModeAuthentication
54 static ISteamNetworkingSockets
*hSteamNetworkingSockets
= NULL
;
56 #endif /* GAMESERVER_H */