![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
Go to the source code of this file.
Data Structures | |
struct | protocolversioninfo_s |
Functions | |
protocolversion_t | Protocol_EnumForName (const char *s) |
protocolversion_t | Protocol_EnumForNumber (int n) |
const char * | Protocol_NameForEnum (protocolversion_t p) |
void | Protocol_Names (char *buffer, size_t buffersize) |
int | Protocol_NumberForEnum (protocolversion_t p) |
void | Protocol_UpdateClientStats (const int *stats) |
void | Protocol_WriteStatsReliable (void) |
Variables | |
entity_state_t | defaultstate |
struct protocolversioninfo_s | protocolversioninfo [] |
static const int | sendquakestats [] |
protocolversion_t Protocol_EnumForName | ( | const char * | s | ) |
Definition at line 68 of file protocol.c.
References i, name, protocolversioninfo_s::name, PROTOCOL_UNKNOWN, protocolversioninfo, and protocolversioninfo_s::version.
Referenced by SV_SpawnServer().
protocolversion_t Protocol_EnumForNumber | ( | int | n | ) |
Definition at line 86 of file protocol.c.
References i, n, protocolversioninfo_s::name, PROTOCOL_UNKNOWN, protocolversioninfo, and protocolversioninfo_s::version.
Referenced by CL_ParseServerInfo(), and CL_ParseServerMessage().
const char * Protocol_NameForEnum | ( | protocolversion_t | p | ) |
Definition at line 77 of file protocol.c.
References i, protocolversioninfo_s::name, protocolversioninfo, and version.
Referenced by CL_ParseServerInfo(), and SV_Status_f().
void Protocol_Names | ( | char * | buffer, |
size_t | buffersize ) |
Definition at line 104 of file protocol.c.
References buffer, dp_strlcat, i, name, protocolversioninfo_s::name, and protocolversioninfo.
Referenced by NetConn_ClientParsePacket(), and SV_SpawnServer().
int Protocol_NumberForEnum | ( | protocolversion_t | p | ) |
Definition at line 95 of file protocol.c.
References i, protocolversioninfo_s::name, protocolversioninfo_s::number, protocolversioninfo, and version.
Referenced by SV_SendServerinfo(), and SV_Status_f().
Definition at line 118 of file protocol.c.
References host_client, i, MAX_CL_STATS, client_t::stats, and client_t::statsdeltabits.
Referenced by SV_SendClientDatagram().
Definition at line 151 of file protocol.c.
References host_client, i, netconn_t::message, MSG_WriteByte(), MSG_WriteLong(), client_t::netconnection, server_t::protocol, PROTOCOL_QUAKEWORLD, qw_svc_updatestat, qw_svc_updatestatlong, sendquakestats, client_t::stats, client_t::statsdeltabits, sv, and svc_updatestat.
Referenced by SV_WriteEntitiesToClient().
entity_state_t defaultstate |
Definition at line 4 of file protocol.c.
Referenced by CL_ClearState(), CL_ExpandEntities(), CL_ParseBaseline(), CL_UpdateViewModel(), EntityFrame4_AckFrame(), EntityFrame4_CL_ReadFrame(), EntityFrame4_GetReferenceEntity(), EntityFrame4_ResetDatabase(), EntityFrame4_WriteFrame(), EntityFrame5_AllocDatabase(), EntityFrame5_CL_ReadFrame(), EntityFrame5_WriteFrame(), EntityFrame_CL_ReadFrame(), EntityFrame_WriteFrame(), EntityFrameQuake_ISeeDeadEntities(), EntityState5_ReadUpdate(), EntityState_DeltaBits(), EntityStateQW_ReadPlayerUpdate(), SV_CreateBaseline(), and SV_PrepareEntityForSending().
struct protocolversioninfo_s protocolversioninfo[] |
Referenced by Protocol_EnumForName(), Protocol_EnumForNumber(), Protocol_NameForEnum(), Protocol_Names(), and Protocol_NumberForEnum().
|
static |
Definition at line 135 of file protocol.c.
Referenced by Protocol_WriteStatsReliable().