Crossfire Client, Branch
R11627
|
Go to the source code of this file.
Data Structures | |
struct | Meta_Info |
Structure that contains data we get from metaservers This is used by both metaserver1 and metaserver2 support - fields used by only one metaserver type or the other are noted with MS1 or MS2 comments. More... | |
Defines | |
#define | CACHED_SERVERS_MAX 10 |
#define | MAX_METASERVER 100 |
#define | MS_LARGE_BUF 512 |
#define | MS_SMALL_BUF 60 |
Typedefs | |
typedef struct Meta_Info | Meta_Info |
Structure that contains data we get from metaservers This is used by both metaserver1 and metaserver2 support - fields used by only one metaserver type or the other are noted with MS1 or MS2 comments. | |
Functions | |
static int | meta_sort (Meta_Info *m1, Meta_Info *m2) |
Variables | |
const char * | cached_server_file |
char * | cached_servers_ip [CACHED_SERVERS_MAX] |
char * | cached_servers_name [CACHED_SERVERS_MAX] |
int | cached_servers_num |
int | meta_numservers |
Meta_Info * | meta_servers |
pthread_mutex_t | ms2_info_mutex |
#define CACHED_SERVERS_MAX 10 |
Definition at line 82 of file metaserver.h.
Referenced by metaserver_load_cache(), and metaserver_select().
#define MAX_METASERVER 100 |
Definition at line 31 of file metaserver.h.
Referenced by metaserver1_get_info(), metaserver1_thread(), and metaserver2_get_info().
#define MS_LARGE_BUF 512 |
Definition at line 35 of file metaserver.h.
Referenced by metaserver1_thread(), and metaserver_load_cache().
#define MS_SMALL_BUF 60 |
Definition at line 34 of file metaserver.h.
Structure that contains data we get from metaservers This is used by both metaserver1 and metaserver2 support - fields used by only one metaserver type or the other are noted with MS1 or MS2 comments.
Note that the client doesn't necessary do anything with all of these fields, but might as well store them around just in case
Definition at line 76 of file metaserver.h.
References Meta_Info::hostname.
Referenced by get_metaserver(), metaserver1_thread(), metaserver2_thread(), and metaserver_show().
const char* cached_server_file |
Definition at line 107 of file metaserver.c.
Definition at line 105 of file metaserver.c.
Referenced by get_metaserver(), metaserver_load_cache(), metaserver_save_cache(), metaserver_select(), and metaserver_show().
Definition at line 104 of file metaserver.c.
Referenced by get_metaserver(), metaserver_load_cache(), metaserver_save_cache(), metaserver_select(), and metaserver_show().
Definition at line 103 of file metaserver.c.
Referenced by get_metaserver(), metaserver_load_cache(), metaserver_save_cache(), metaserver_select(), and metaserver_show().
int meta_numservers |
Definition at line 57 of file metaserver.c.
Referenced by get_metaserver(), metaserver1_thread(), metaserver2_thread(), metaserver2_writer(), metaserver_get_info(), metaserver_select(), and metaserver_show().
Definition at line 55 of file metaserver.c.
Referenced by get_metaserver().
pthread_mutex_t ms2_info_mutex |
Definition at line 171 of file metaserver.c.
Referenced by get_metaserver(), init_metaserver(), metaserver1_get_info(), metaserver1_thread(), metaserver2_get_info(), metaserver2_thread(), metaserver2_writer(), metaserver_check_status(), metaserver_select(), and metaserver_show().