Nuclide
Software Development Kit for id Tech
master.h File Reference

Master Server related functions. More...

Go to the source code of this file.

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

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

Variables

float srv_fldAdress
 
float srv_fldName
 
float srv_fldPing
 
float srv_fldPlayers
 
float srv_fldMaxplayers
 
float srv_fldMap
 
float srv_fldGame
 
float srv_fldServerInfo
 
float srv_fldPlayer0
 
int g_masterInternetServers
 
int g_masterLANServers
 

Detailed Description

Master Server related functions.

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

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.

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.

Variable Documentation

◆ g_masterInternetServers

int g_masterInternetServers

◆ g_masterLANServers

int g_masterLANServers

◆ srv_fldAdress

float srv_fldAdress

◆ srv_fldGame

float srv_fldGame

◆ srv_fldMap

float srv_fldMap

◆ srv_fldMaxplayers

float srv_fldMaxplayers

◆ srv_fldName

float srv_fldName

◆ srv_fldPing

float srv_fldPing

◆ srv_fldPlayer0

float srv_fldPlayer0

◆ srv_fldPlayers

float srv_fldPlayers

◆ srv_fldServerInfo

float srv_fldServerInfo