Nuclide
Software Development Kit for id Tech
master.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2022 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
25#define MASTER_DNS "master.frag-net.com"
27#define MASTER_PORT 27950
28
38
39/* We cache these, because the engine may purge our cache anyway */
42
44string Master_Resolve(void);
45
48
51
53int Master_GetLANServers(void);
54
56void Master_UpdateCache(void);
57
59void Master_RefreshCache(void);
60
62void Master_ResortCache(void);
63
65void Master_GetInternetList(void);
66
68void Master_GetLANList(void);
int g_masterInternetServers
Definition: master.h:40
int g_masterLANServers
Definition: master.h:41
float srv_fldPing
Definition: master.h:31
float srv_fldServerInfo
Definition: master.h:36
int Master_GetTotalServers(void)
Returns the total amount of games from both LAN and Internet.
Definition: master.qc:48
void Master_GetInternetList(void)
Grab a NEW internet game list.
Definition: master.qc:148
void Master_UpdateCache(void)
Get completely new list of servers, hard-reset the cache.
Definition: master.qc:116
float srv_fldAdress
Definition: master.h:29
float srv_fldGame
Definition: master.h:35
float srv_fldMaxplayers
Definition: master.h:33
void Master_RefreshCache(void)
Refresh the current server cache.
Definition: master.qc:98
float srv_fldMap
Definition: master.h:34
void Master_GetLANList(void)
Grab a NEW LAN list.
Definition: master.qc:172
int Master_GetLANServers(void)
Returns the amount of LAN servers from the last refresh.
Definition: master.qc:60
void Master_ResortCache(void)
Re-Sort the server cache without refreshing.
Definition: master.qc:133
float srv_fldPlayers
Definition: master.h:32
float srv_fldPlayer0
Definition: master.h:37
int Master_GetInternetServers(void)
Returns the amount of internet games from the last refresh.
Definition: master.qc:66
string Master_Resolve(void)
Returns IP of master server.
Definition: master.qc:30
float srv_fldName
Definition: master.h:30