FS2_Open
Open source remastering of the Freespace 2 engine
fs2netd_client.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _FS2NETD_CLIENT_H
13 #define _FS2NETD_CLIENT_H
14 
15 #include "network/multi.h"
16 
17 struct net_addr;
18 class player;
19 
20 // channel to associate when creating a server
21 extern char Multi_fs_tracker_channel[];
22 
23 // channel to use when polling the tracker for games
24 extern char Multi_fs_tracker_filter[];
25 
26 typedef struct tracker_game_data {
29  char title[NAME_LENGTH+1];
32 
34  int flags;
36  short players;
37  short max_players;
43 
45 
46 
47 bool fs2netd_is_online();
48 
50 void fs2netd_disconnect();
51 
52 void fs2netd_close();
53 
54 bool fs2netd_login();
55 
56 void fs2netd_maybe_init();
57 
58 void fs2netd_do_frame();
59 
61 void fs2netd_gameserver_update(bool force = false);
63 
65 
66 void fs2netd_store_stats();
67 
69 
71 
73 
75 
76 int fs2netd_get_pilot_info(const char *callsign, player *out_plr, bool first_call);
77 
79 
80 void fs2netd_add_table_validation(const char *tblname);
81 
82 void fs2netd_update_game_count(const char *chan_name);
83 
84 #endif // _FS2NETD_CLIENT_H
void fs2netd_gameserver_update(bool force=false)
void fs2netd_update_game_count(const char *chan_name)
void fs2netd_update_ban_list()
#define MAX_PATH
void fs2netd_store_stats()
void fs2netd_send_game_request()
char title[NAME_LENGTH+1]
char chat_channel[MAX_PATH+1]
bool fs2netd_player_banned(net_addr *addr)
int fs2netd_update_valid_tables()
struct tracker_game_data tracker_game_data
Definition: player.h:85
void fs2netd_maybe_init()
char campaign_name[NAME_LENGTH+1]
bool fs2netd_get_valid_missions()
bool fs2netd_login()
void fs2netd_options_config_init()
char mission_name[MAX_GAMENAME_LEN+1]
void fs2netd_gameserver_start()
void fs2netd_add_table_validation(const char *tblname)
void fs2netd_do_frame()
unsigned char ubyte
Definition: pstypes.h:62
char Multi_fs_tracker_channel[]
tracker_game_data Multi_tracker_game_data
GLuint const GLchar * name
Definition: Glext.h:5608
void fs2netd_reset_connection()
void fs2netd_gameserver_disconnect()
#define NAME_LENGTH
Definition: globals.h:15
bool fs2netd_is_online()
#define MAX_GAMENAME_LEN
Definition: multi.h:88
char Multi_fs_tracker_filter[]
void fs2netd_disconnect()
int fs2netd_get_pilot_info(const char *callsign, player *out_plr, bool first_call)
GLenum const GLvoid * addr
Definition: Glext.h:9092
void fs2netd_close()