Nuclide
Software Development Kit for id Technology
Master Server

Master Server related functions. More...

Detailed Description

Master Server related functions.

Various functions to help communicate with the master server(s).

Functions

string Master_Resolve (void)
 Returns IP of master server. More...
 
int Master_GetTotalServers (void)
 Returns the total amount of games from both LAN and Internet. More...
 
int Master_GetInternetServers (void)
 Returns the amount of internet games from the last refresh. More...
 
int Master_GetLANServers (void)
 Returns the amount of LAN servers from the last refresh. More...
 
void Master_UpdateCache (void)
 Get completely new list of servers, hard-reset the cache. More...
 
void Master_RefreshCache (void)
 Refresh the current server cache. More...
 
void Master_ResortCache (void)
 Re-Sort the server cache without refreshing. More...
 
void Master_GetInternetList (void)
 Grab a NEW internet game list. More...
 
void Master_GetLANList (void)
 Grab a NEW LAN list. More...
 

Macros

#define MASTER_DNS   "master.frag-net.com"
 The default master server address. More...
 
#define MASTER_PORT   27950
 The default port used to talk to the master server. More...
 

Function Documentation

◆ Master_GetInternetList()

void Master_GetInternetList ( void  )

Grab a NEW internet game list.

Will flush any other lists.

◆ Master_GetInternetServers()

int Master_GetInternetServers ( void  )

Returns the amount of internet games from the last refresh.

◆ Master_GetLANList()

void Master_GetLANList ( void  )

Grab a NEW LAN list.

Will flush any other lists.

◆ Master_GetLANServers()

int Master_GetLANServers ( void  )

Returns the amount of LAN servers from the last refresh.

◆ Master_GetTotalServers()

int Master_GetTotalServers ( void  )

Returns the total amount of games from both LAN and Internet.

◆ Master_RefreshCache()

void Master_RefreshCache ( void  )

Refresh the current server cache.

Will only talk to known servers.

◆ Master_Resolve()

string Master_Resolve ( void  )

Returns IP of master server.

◆ Master_ResortCache()

void Master_ResortCache ( void  )

Re-Sort the server cache without refreshing.

◆ Master_UpdateCache()

void Master_UpdateCache ( void  )

Get completely new list of servers, hard-reset the cache.

Forgets about all else.

Macro Definition Documentation

◆ MASTER_DNS

#define MASTER_DNS   "master.frag-net.com"

The default master server address.

◆ MASTER_PORT

#define MASTER_PORT   27950

The default port used to talk to the master server.