Quake II RTX doxygen  1.0 dev
client_s Struct Reference

#include <server.h>

Public Attributes

list_t entry
 
clstate_t state
 
edict_t * edict
 
int number
 
qboolean reconnected: 1
 
qboolean nodata: 1
 
qboolean has_zlib: 1
 
qboolean drop_hack: 1
 
qboolean http_download: 1
 
char userinfo [MAX_INFO_STRING]
 
char name [MAX_CLIENT_NAME]
 
int messagelevel
 
size_t rate
 
ratelimit_t ratelimit_namechange
 
char * version_string
 
char reconnect_var [16]
 
char reconnect_val [16]
 
int console_queries
 
unsigned lastmessage
 
unsigned lastactivity
 
int lastframe
 
usercmd_t lastcmd
 
int command_msec
 
int num_moves
 
int moves_per_sec
 
int ping
 
int min_ping
 
int max_ping
 
int avg_ping_time
 
int avg_ping_count
 
client_frame_t frames [UPDATE_BACKUP]
 
unsigned frames_sent
 
unsigned frames_acked
 
unsigned frames_nodelta
 
int framenum
 
unsigned frameflags
 
size_t message_size [RATE_MESSAGES]
 
int suppress_count
 
unsigned send_time
 
unsigned send_delta
 
byte * download
 
int downloadsize
 
int downloadcount
 
char * downloadname
 
int downloadcmd
 
qboolean downloadpending
 
int challenge
 
int protocol
 
int version
 
int settings [CLS_MAX]
 
pmoveParams_t pmp
 
msgEsFlags_t esFlags
 
list_t msg_free_list
 
list_t msg_unreliable_list
 
list_t msg_reliable_list
 
message_packet_tmsg_pool
 
size_t msg_unreliable_bytes
 
size_t msg_dynamic_bytes
 
entity_packed_t * baselines [SV_BASELINES_CHUNKS]
 
char * configstrings
 
char * gamedir
 
char * mapname
 
edict_pool_t * pool
 
cm_t * cm
 
int slot
 
int spawncount
 
int maxclients
 
void(* AddMessage )(struct client_s *, byte *, size_t, qboolean)
 
void(* WriteFrame )(struct client_s *)
 
void(* WriteDatagram )(struct client_s *)
 
netchan_t * netchan
 
int numpackets
 
time_t connect_time
 
int last_valid_cluster
 

Detailed Description

Definition at line 256 of file server.h.

Member Data Documentation

◆ AddMessage

void(* client_s::AddMessage) (struct client_s *, byte *, size_t, qboolean)

Definition at line 352 of file server.h.

Referenced by compress_message(), dummy_create(), SV_ClientAddMessage(), and SV_InitClientSend().

◆ avg_ping_count

int client_s::avg_ping_count

Definition at line 298 of file server.h.

◆ avg_ping_time

int client_s::avg_ping_time

Definition at line 298 of file server.h.

◆ baselines

entity_packed_t* client_s::baselines[SV_BASELINES_CHUNKS]

◆ challenge

int client_s::challenge

Definition at line 323 of file server.h.

Referenced by SVC_DirectConnect().

◆ cm

cm_t* client_s::cm

Definition at line 346 of file server.h.

Referenced by SV_BuildClientFrame(), and SVC_DirectConnect().

◆ command_msec

int client_s::command_msec

Definition at line 292 of file server.h.

Referenced by SV_Begin_f(), and SV_ClientThink().

◆ configstrings

char* client_s::configstrings

Definition at line 343 of file server.h.

Referenced by MVD_FollowStop(), SV_New_f(), SVC_DirectConnect(), and write_plain_configstrings().

◆ connect_time

time_t client_s::connect_time

Definition at line 361 of file server.h.

Referenced by dump_time(), SV_New_f(), and SV_PrintMiscInfo().

◆ console_queries

int client_s::console_queries

Definition at line 285 of file server.h.

Referenced by SV_CvarResult_f(), and SV_StuffCvar_f().

◆ download

◆ downloadcmd

int client_s::downloadcmd

Definition at line 319 of file server.h.

Referenced by SV_BeginDownload_f(), SV_CloseDownload(), and write_pending_download().

◆ downloadcount

int client_s::downloadcount

◆ downloadname

char* client_s::downloadname

Definition at line 318 of file server.h.

Referenced by dump_downloads(), SV_BeginDownload_f(), SV_CloseDownload(), and SV_StopDownload_f().

◆ downloadpending

qboolean client_s::downloadpending

◆ downloadsize

int client_s::downloadsize

◆ drop_hack

qboolean client_s::drop_hack

Definition at line 268 of file server.h.

Referenced by PF_Unicast(), and SV_CheckTimeouts().

◆ edict

◆ entry

list_t client_s::entry

Definition at line 257 of file server.h.

Referenced by dummy_create(), SV_RemoveClient(), and SVC_DirectConnect().

◆ esFlags

msgEsFlags_t client_s::esFlags

◆ frameflags

◆ framenum

◆ frames

◆ frames_acked

unsigned client_s::frames_acked

Definition at line 302 of file server.h.

Referenced by SV_SetLastFrame().

◆ frames_nodelta

unsigned client_s::frames_nodelta

Definition at line 302 of file server.h.

Referenced by get_last_frame(), SV_CheckTimeouts(), and SV_ClientReset().

◆ frames_sent

unsigned client_s::frames_sent

Definition at line 302 of file server.h.

Referenced by SV_BuildClientFrame().

◆ gamedir

char* client_s::gamedir

Definition at line 344 of file server.h.

Referenced by SV_New_f(), and SVC_DirectConnect().

◆ has_zlib

qboolean client_s::has_zlib

◆ http_download

qboolean client_s::http_download

Definition at line 272 of file server.h.

Referenced by dump_clients(), dump_downloads(), SV_Begin_f(), and SV_BeginDownload_f().

◆ last_valid_cluster

int client_s::last_valid_cluster

Definition at line 362 of file server.h.

Referenced by SV_BuildClientFrame(), and SVC_DirectConnect().

◆ lastactivity

unsigned client_s::lastactivity

◆ lastcmd

usercmd_t client_s::lastcmd

◆ lastframe

◆ lastmessage

unsigned client_s::lastmessage

◆ mapname

char * client_s::mapname

Definition at line 344 of file server.h.

Referenced by send_connect_packet(), and SVC_DirectConnect().

◆ max_ping

int client_s::max_ping

Definition at line 297 of file server.h.

Referenced by SV_PrintMiscInfo().

◆ maxclients

int client_s::maxclients

Definition at line 349 of file server.h.

Referenced by SVC_DirectConnect().

◆ message_size

size_t client_s::message_size[RATE_MESSAGES]

Definition at line 310 of file server.h.

Referenced by SV_CalcSendTime(), and SV_RateDrop().

◆ messagelevel

int client_s::messagelevel

Definition at line 277 of file server.h.

Referenced by PF_bprintf(), and PF_cprintf().

◆ min_ping

int client_s::min_ping

Definition at line 297 of file server.h.

Referenced by SV_PrintMiscInfo(), and SVC_DirectConnect().

◆ moves_per_sec

int client_s::moves_per_sec

Definition at line 295 of file server.h.

Referenced by dump_clients(), and SV_PrintMiscInfo().

◆ msg_dynamic_bytes

size_t client_s::msg_dynamic_bytes

Definition at line 337 of file server.h.

Referenced by add_msg_packet(), free_all_messages(), and free_msg_packet().

◆ msg_free_list

list_t client_s::msg_free_list

◆ msg_pool

message_packet_t* client_s::msg_pool

◆ msg_reliable_list

list_t client_s::msg_reliable_list

◆ msg_unreliable_bytes

size_t client_s::msg_unreliable_bytes

◆ msg_unreliable_list

list_t client_s::msg_unreliable_list

◆ name

◆ netchan

◆ nodata

qboolean client_s::nodata

◆ num_moves

int client_s::num_moves

Definition at line 294 of file server.h.

Referenced by SV_ClientThink().

◆ number

◆ numpackets

int client_s::numpackets

◆ ping

int client_s::ping

Definition at line 297 of file server.h.

Referenced by dump_clients(), and SV_PrintMiscInfo().

◆ pmp

pmoveParams_t client_s::pmp

Definition at line 328 of file server.h.

Referenced by init_pmove_and_es_flags(), PF_Pmove(), and SV_New_f().

◆ pool

edict_pool_t* client_s::pool

Definition at line 345 of file server.h.

Referenced by create_baselines(), SV_BuildClientFrame(), and SVC_DirectConnect().

◆ protocol

◆ rate

size_t client_s::rate

Definition at line 278 of file server.h.

Referenced by dump_clients(), SV_CalcSendTime(), and SV_RateDrop().

◆ ratelimit_namechange

ratelimit_t client_s::ratelimit_namechange

Definition at line 279 of file server.h.

Referenced by sv_namechange_limit_changed(), SV_UpdateUserinfo(), and SVC_DirectConnect().

◆ reconnect_val

char client_s::reconnect_val[16]

Definition at line 284 of file server.h.

Referenced by stuff_junk(), SV_CvarResult_f(), and SVC_DirectConnect().

◆ reconnect_var

char client_s::reconnect_var[16]

◆ reconnected

qboolean client_s::reconnected

Definition at line 265 of file server.h.

Referenced by SV_Begin_f(), SV_CvarResult_f(), SV_New_f(), and SVC_DirectConnect().

◆ send_delta

unsigned client_s::send_delta

Definition at line 312 of file server.h.

Referenced by SV_Begin_f(), SV_CalcSendTime(), SV_ClientReset(), and SV_SendAsyncPackets().

◆ send_time

unsigned client_s::send_time

Definition at line 312 of file server.h.

Referenced by SV_CalcSendTime(), and SV_SendAsyncPackets().

◆ settings

◆ slot

int client_s::slot

Definition at line 347 of file server.h.

Referenced by dummy_create(), SV_New_f(), and SVC_DirectConnect().

◆ spawncount

int client_s::spawncount

Definition at line 348 of file server.h.

Referenced by MVD_ChangeLevel(), SV_New_f(), SV_SpawnServer(), and SVC_DirectConnect().

◆ state

◆ suppress_count

int client_s::suppress_count

◆ userinfo

char client_s::userinfo[MAX_INFO_STRING]

◆ version

◆ version_string

char* client_s::version_string

◆ WriteDatagram

void(* client_s::WriteDatagram) (struct client_s *)

Definition at line 354 of file server.h.

Referenced by SV_InitClientSend(), and SV_SendClientMessages().

◆ WriteFrame

void(* client_s::WriteFrame) (struct client_s *)

Definition at line 353 of file server.h.

Referenced by SVC_DirectConnect(), write_datagram_new(), and write_datagram_old().