test network 1
[carveJwlIkooP6JGAAIwe30JlM.git] / gameserver.h
1 #ifndef GAMESERVER_H
2 #define GAMESERVER_H
3
4 #define VG_SERVER
5 #include "vg/vg.h"
6 #include "vg/vg_steam.h"
7 #include "vg/vg_steam_networking.h"
8 #include "vg/vg_steam_http.h"
9 #include "vg/vg_steam_auth.h"
10 #include "network_msg.h"
11 #include "highscores.h"
12 #include <sys/socket.h>
13
14 struct {
15 HSteamNetPollGroup client_group;
16 EServerMode auth_mode;
17
18 struct gameserver_client {
19 int active;
20 int authenticated;
21 HSteamNetConnection connection;
22 }
23 clients[ 32 ];
24
25 u8 app_symmetric_key[ k_nSteamEncryptedAppTicketSymmetricKeyLen ];
26
27 int monitor_fd;
28 int monitor_clients[ 4 ];
29 }
30 static gameserver = {
31 .auth_mode = eServerModeAuthentication
32 };
33
34 static ISteamNetworkingSockets *hSteamNetworkingSockets = NULL;
35
36 #endif /* GAMESERVER_H */