Crossfire Client, Branches  R11627
metaserver.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Meta_Info
 

Macros

#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
 

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_Infometa_servers
 
pthread_mutex_t ms2_info_mutex
 

Macro Definition Documentation

#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.

Typedef Documentation

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. Note that the client doesn't necessary do anything with all of these fields, but might as well store them around just in case

Function Documentation

static int meta_sort ( Meta_Info m1,
Meta_Info m2 
)
static

Definition at line 76 of file metaserver.h.

References Meta_Info::hostname.

Referenced by get_metaserver(), metaserver1_thread(), metaserver2_thread(), and metaserver_show().

+ Here is the caller graph for this function:

Variable Documentation

const char* cached_server_file

Definition at line 107 of file metaserver.c.

int cached_servers_num
Meta_Info* meta_servers

Definition at line 55 of file metaserver.c.

Referenced by get_metaserver().