QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sv_main.c File Reference

Macros

#define HEARTBEAT_SECONDS   300
 
#define LOG_FLUSH   10*60
 
#define LOG_HIGHWATER   (MAX_DATAGRAM - 100)
 
#define MAX_IPFILTERS   1024
 

Functions

void Master_Heartbeat (void)
 
client_tSV_AllocClient (int spectator, int server)
 
int SV_CalcPing (client_t *cl)
 
void SV_DropClient (client_t *drop)
 
void SV_ExtractFromUserinfo (client_t *cl)
 
void SV_FinalMessage (const char *message)
 
void SV_Frame (float time)
 
void SV_FullClientUpdate (client_t *client, sizebuf_t *buf)
 
void SV_FullClientUpdateToClient (client_t *client, backbuf_t *backbuf)
 
void SV_Init (void)
 
double SV_RestorePenaltyFilter (client_t *cl, filtertype_t type)
 
void SV_SavePenaltyFilter (client_t *cl, filtertype_t type, double pentime)
 
void SV_Shutdown (void)
 

Variables

cvar_tadmin_password
 
cvar_tallow_download
 
cvar_tallow_download_demos
 
cvar_tallow_download_maps
 
cvar_tallow_download_models
 
cvar_tallow_download_skins
 
cvar_tallow_download_sounds
 
entity_state_t cl_entities [MAX_CLIENTS][UPDATE_BACKUP+1][MAX_PACKET_ENTITIES]
 
const char * client_info_filters []
 
cvar_tcoop
 
cvar_tdeathmatch
 
cvar_tfilterban
 
cvar_tfraglimit
 
client_thost_client
 
int host_hunklevel
 
qboolean host_initialized
 
quakeparms_t host_parms
 
cvar_thostname
 
ipfilter_t ipfilters [MAX_IPFILTERS]
 
unsigned int ipmasks [33]
 
netadr_t master_adr [MAX_MASTERS]
 
cvar_tmaxclients
 
cvar_tmaxspectators
 
double netdosexpire [DOSFLOODCMDS] = { 1, 1, 2, 0.9, 1, 5 }
 
double netdosvalues [DOSFLOODCMDS] = { 12, 1, 3, 1, 1, 1 }
 
int numipfilters
 
cvar_tpassword
 
cvar_tpausable
 
cvar_tpr_gc
 
int pr_gc_count = 0
 
cvar_tpr_gc_interval
 
qboolean rcon_from_user
 
cvar_trcon_password
 
double realtime
 
cvar_tsamelevel
 
cvar_tskill
 
cvar_tspawn
 
cvar_tspectator_password
 
cvar_tsv_allow_log
 
cvar_tsv_allow_ping
 
cvar_tsv_allow_status
 
cbuf_args_tsv_args
 
cbuf_tsv_cbuf
 
cvar_tsv_console_plugin
 
cvar_tsv_extensions
 
cvar_tsv_filter_automask
 
QFilesv_fraglogfile
 
double sv_frametime
 
cvar_tsv_highchars
 
cvar_tsv_maxrate
 
cvar_tsv_maxtic
 
cvar_tsv_mem_size
 
cvar_tsv_minqfversion
 
cvar_tsv_mintic
 
int sv_net_initialized
 
cvar_tsv_netdosprotect
 
cvar_tsv_phs
 
cvar_tsv_timefmt
 
cvar_tsv_timeout
 
cvar_tsv_timestamps
 
cvar_tteamplay
 
cvar_ttimelimit
 
cvar_twatervis
 
cvar_tzombietime
 

Macro Definition Documentation

#define HEARTBEAT_SECONDS   300
#define LOG_FLUSH   10*60
#define LOG_HIGHWATER   (MAX_DATAGRAM - 100)
#define MAX_IPFILTERS   1024

Function Documentation

void Master_Heartbeat ( void  )
client_t* SV_AllocClient ( int  spectator,
int  server 
)
int SV_CalcPing ( client_t cl)
void SV_DropClient ( client_t drop)
void SV_ExtractFromUserinfo ( client_t cl)
void SV_FinalMessage ( const char *  message)
void SV_Frame ( float  time)
void SV_FullClientUpdate ( client_t client,
sizebuf_t buf 
)
void SV_FullClientUpdateToClient ( client_t client,
backbuf_t backbuf 
)
void SV_Init ( void  )
double SV_RestorePenaltyFilter ( client_t cl,
filtertype_t  type 
)
void SV_SavePenaltyFilter ( client_t cl,
filtertype_t  type,
double  pentime 
)
void SV_Shutdown ( void  )

Variable Documentation

cvar_t* admin_password
cvar_t* allow_download
cvar_t* allow_download_demos
cvar_t* allow_download_maps
cvar_t* allow_download_models
cvar_t* allow_download_skins
cvar_t* allow_download_sounds
const char* client_info_filters[]
Initial value:
= {
"name",
"chat",
"topcolor",
"bottomcolor",
"rate",
"msg",
"skin",
"team",
"noaim",
"pmodel",
"emodel",
"spectator",
"*spectator",
"*ver",
}
#define NULL
Definition: qendian.h:41
cvar_t* coop
cvar_t* deathmatch
cvar_t* filterban
cvar_t* fraglimit
client_t* host_client
int host_hunklevel
qboolean host_initialized
quakeparms_t host_parms
ipfilter_t ipfilters[MAX_IPFILTERS]
unsigned int ipmasks[33]
netadr_t master_adr[MAX_MASTERS]
cvar_t* maxclients
cvar_t* maxspectators
double netdosexpire[DOSFLOODCMDS] = { 1, 1, 2, 0.9, 1, 5 }
double netdosvalues[DOSFLOODCMDS] = { 12, 1, 3, 1, 1, 1 }
int numipfilters
cvar_t* password
cvar_t* pausable
cvar_t* pr_gc
int pr_gc_count = 0
cvar_t* pr_gc_interval
qboolean rcon_from_user
cvar_t* rcon_password
cvar_t* samelevel
cvar_t* skill
cvar_t* spawn
cvar_t* spectator_password
cvar_t* sv_allow_log
cvar_t* sv_allow_ping
cvar_t* sv_allow_status
cbuf_args_t* sv_args
cbuf_t* sv_cbuf
cvar_t* sv_console_plugin
cvar_t* sv_extensions
cvar_t* sv_filter_automask
QFile* sv_fraglogfile
double sv_frametime
cvar_t* sv_highchars
cvar_t* sv_maxrate
cvar_t* sv_maxtic
cvar_t* sv_mem_size
cvar_t* sv_minqfversion
cvar_t* sv_mintic
int sv_net_initialized
cvar_t* sv_netdosprotect
cvar_t* sv_phs
cvar_t* sv_timefmt
cvar_t* sv_timestamps
cvar_t* teamplay
cvar_t* timelimit
cvar_t* watervis
cvar_t* zombietime