UFO: Alien Invasion
serverInstanceStatic_t Struct Reference

#include <server.h>

Collaboration diagram for serverInstanceStatic_t:
Collaboration graph

Data Fields

bool initialized
 
int realtime
 
struct datagram_socketnetDatagramSocket
 
struct client_s * clients
 
int lastHeartbeat
 
int lastPing
 
bool abandon
 
bool killserver
 
SDL_mutex * serverMutex
 
SDL_cond * gameFrameCond
 
SDL_Thread * gameThread
 
voidgameLibrary
 
game_export_tge
 

Detailed Description

Definition at line 76 of file server.h.

Field Documentation

◆ abandon

bool serverInstanceStatic_t::abandon

shutdown server when all clients disconnect and don't accept new connections

Definition at line 84 of file server.h.

Referenced by SV_DropClient(), SV_Frame(), and SV_ShutdownWhenEmpty().

◆ clients

struct client_s* serverInstanceStatic_t::clients

[sv_maxclients->value];

Definition at line 80 of file server.h.

Referenced by SV_GetClient(), SV_GetNextClient(), SV_InitGame(), SV_Shutdown(), and SV_Status_f().

◆ gameFrameCond

SDL_cond* serverInstanceStatic_t::gameFrameCond

the signal that the game frame threads waits for

Definition at line 87 of file server.h.

Referenced by SV_Frame(), SV_InitGameProgs(), SV_RunGameFrameThread(), and SV_ShutdownGameProgs().

◆ gameLibrary

void* serverInstanceStatic_t::gameLibrary

Definition at line 90 of file server.h.

Referenced by SV_GetGameAPI(), SV_LoadGame(), and SV_UnloadGame().

◆ gameThread

SDL_Thread* serverInstanceStatic_t::gameThread

Definition at line 88 of file server.h.

Referenced by SV_InitGameProgs(), and SV_ShutdownGameProgs().

◆ ge

◆ initialized

bool serverInstanceStatic_t::initialized

sv_init has completed

Definition at line 77 of file server.h.

Referenced by SV_CountPlayers(), SV_Frame(), SV_InitGame(), SV_Kick_f(), SV_KillServer_f(), SV_Map(), SV_Shutdown(), and SV_UserInfo_f().

◆ killserver

bool serverInstanceStatic_t::killserver

will initiate shutdown once abandon is set

Definition at line 85 of file server.h.

Referenced by SV_DropClient(), and SV_Frame().

◆ lastHeartbeat

int serverInstanceStatic_t::lastHeartbeat

time where the last heartbeat was send to the master server Set to a huge negative value to send immmediately

Definition at line 81 of file server.h.

Referenced by Master_Heartbeat(), and SV_Heartbeat_f().

◆ lastPing

int serverInstanceStatic_t::lastPing

Definition at line 83 of file server.h.

Referenced by SV_PingPlayers().

◆ netDatagramSocket

struct datagram_socket* serverInstanceStatic_t::netDatagramSocket

Definition at line 79 of file server.h.

Referenced by SV_InitGame(), and SV_Shutdown().

◆ realtime

int serverInstanceStatic_t::realtime

always increasing, no clamping, etc

Definition at line 78 of file server.h.

Referenced by Master_Heartbeat(), SV_CheckTimeouts(), SV_ExecuteClientMessage(), SV_Frame(), SV_PingPlayers(), and SVC_DirectConnect().

◆ serverMutex


The documentation for this struct was generated from the following file: