UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
serverInstanceStatic_s Struct Reference

#include <server.h>

Data Fields

bool initialized
 
int realtime
 
struct datagram_socketnetDatagramSocket
 
struct client_sclients
 
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

bool serverInstanceStatic_s::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().

struct client_s* serverInstanceStatic_s::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().

SDL_cond* serverInstanceStatic_s::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().

void* serverInstanceStatic_s::gameLibrary

Definition at line 90 of file server.h.

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

SDL_Thread* serverInstanceStatic_s::gameThread

Definition at line 88 of file server.h.

Referenced by SV_InitGameProgs(), and SV_ShutdownGameProgs().

bool serverInstanceStatic_s::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().

bool serverInstanceStatic_s::killserver

will initiate shutdown once abandon is set

Definition at line 85 of file server.h.

Referenced by SV_DropClient(), and SV_Frame().

int serverInstanceStatic_s::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().

int serverInstanceStatic_s::lastPing

Definition at line 83 of file server.h.

Referenced by SV_PingPlayers().

struct datagram_socket* serverInstanceStatic_s::netDatagramSocket

Definition at line 79 of file server.h.

Referenced by SV_InitGame(), and SV_Shutdown().

int serverInstanceStatic_s::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().


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