Crossfire Client, Trunk
metaserver.h File Reference
#include <glib.h>
#include <stdbool.h>
+ Include dependency graph for metaserver.h:
+ 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 MS_LARGE_BUF   512
 
#define MS_SMALL_BUF   60
 

Typedefs

typedef void(* ms_callback) (char *, int, int, char *, char *, bool)
 

Functions

void ms_fetch (ms_callback)
 
void ms_init (void)
 

Detailed Description

Metaserver functions and data structures

Definition in file metaserver.h.

Macro Definition Documentation

◆ MS_LARGE_BUF

#define MS_LARGE_BUF   512

Definition at line 12 of file metaserver.h.

◆ MS_SMALL_BUF

#define MS_SMALL_BUF   60

Definition at line 11 of file metaserver.h.

Typedef Documentation

◆ ms_callback

typedef void(* ms_callback) (char *, int, int, char *, char *, bool)

Definition at line 9 of file metaserver.h.

Function Documentation

◆ ms_fetch()

void ms_fetch ( ms_callback  callback)

Fetch a list of servers from the built-in official metaservers.

Because this function can query multiple metaservers, the same servers may be listed multiple times in the results.

Definition at line 269 of file metaserver.c.

References metaservers, and ms_fetch_server().

Referenced by main(), and server_fetch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ms_init()

void ms_init ( )

Initialize metaserver client. This function should be called before any other metaserver functions.

Definition at line 257 of file metaserver.c.

Referenced by client_init(), and main().

+ Here is the caller graph for this function: