doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
idAsyncClient Class Reference

#include <AsyncClient.h>

Public Member Functions

 idAsyncClient ()
 
void Shutdown (void)
 
bool InitPort (void)
 
void ClosePort (void)
 
void ConnectToServer (const netadr_t adr)
 
void ConnectToServer (const char *address)
 
void Reconnect (void)
 
void DisconnectFromServer (void)
 
void GetServerInfo (const netadr_t adr)
 
void GetServerInfo (const char *address)
 
void GetLANServers (void)
 
void GetNETServers (void)
 
void ListServers (void)
 
void ClearServers (void)
 
void RemoteConsole (const char *command)
 
bool IsPortInitialized ()
 
bool IsActive (void) const
 
int GetLocalClientNum (void) const
 
int GetPrediction (void) const
 
int GetTimeSinceLastPacket (void) const
 
int GetOutgoingRate (void) const
 
int GetIncomingRate (void) const
 
float GetOutgoingCompression (void) const
 
float GetIncomingCompression (void) const
 
float GetIncomingPacketLoss (void) const
 
int GetPredictedFrames (void) const
 
void RunFrame (void)
 
void SendReliableGameMessage (const idBitMsg &msg)
 
void SendVersionCheck (bool fromMenu=false)
 
bool SendAuthCheck (const char *cdkey, const char *xpkey)
 
void PacifierUpdate (void)
 

Public Attributes

idServerScan serverList
 

Private Member Functions

void Clear (void)
 
void ClearPendingPackets (void)
 
void DuplicateUsercmds (int frame, int time)
 
void SendUserInfoToServer (void)
 
void SendEmptyToServer (bool force=false, bool mapLoad=false)
 
void SendPingResponseToServer (int time)
 
void SendUsercmdsToServer (void)
 
void InitGame (int serverGameInitId, int serverGameFrame, int serverGameTime, const idDict &serverSI)
 
void ProcessUnreliableServerMessage (const idBitMsg &msg)
 
void ProcessReliableServerMessages (void)
 
void ProcessChallengeResponseMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessConnectResponseMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessDisconnectMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessInfoResponseMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessPrintMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessServersListMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessAuthKeyMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessVersionMessage (const netadr_t from, const idBitMsg &msg)
 
void ConnectionlessMessage (const netadr_t from, const idBitMsg &msg)
 
void ProcessMessage (const netadr_t from, idBitMsg &msg)
 
void SetupConnection (void)
 
void ProcessPureMessage (const netadr_t from, const idBitMsg &msg)
 
bool ValidatePureServerChecksums (const netadr_t from, const idBitMsg &msg)
 
void ProcessReliableMessagePure (const idBitMsg &msg)
 
const char * HandleGuiCommandInternal (const char *cmd)
 
void SendVersionDLUpdate (int state)
 
void HandleDownloads (void)
 
void Idle (void)
 
int UpdateTime (int clamp)
 
void ReadLocalizedServerString (const idBitMsg &msg, char *out, int maxLen)
 
bool CheckTimeout (void)
 
void ProcessDownloadInfoMessage (const netadr_t from, const idBitMsg &msg)
 
int GetDownloadRequest (const int checksums[MAX_PURE_PAKS], int count, int gamePakChecksum)
 

Static Private Member Functions

static const char * HandleGuiCommand (const char *cmd)
 

Private Attributes

bool active
 
int realTime
 
int clientTime
 
idPort clientPort
 
int clientId
 
int clientDataChecksum
 
int clientNum
 
clientState_t clientState
 
int clientPrediction
 
int clientPredictTime
 
netadr_t serverAddress
 
int serverId
 
int serverChallenge
 
int serverMessageSequence
 
netadr_t lastRconAddress
 
int lastRconTime
 
idMsgChannel channel
 
int lastConnectTime
 
int lastEmptyTime
 
int lastPacketTime
 
int lastSnapshotTime
 
int snapshotSequence
 
int snapshotGameFrame
 
int snapshotGameTime
 
int gameInitId
 
int gameFrame
 
int gameTime
 
int gameTimeResidual
 
usercmd_t userCmds [MAX_USERCMD_BACKUP][MAX_ASYNC_CLIENTS]
 
idUserInterfaceguiNetMenu
 
clientUpdateState_t updateState
 
int updateSentTime
 
idStr updateMSG
 
idStr updateURL
 
bool updateDirectDownload
 
idStr updateFile
 
dlMime_t updateMime
 
idStr updateFallback
 
bool showUpdateMessage
 
backgroundDownload_t backgroundDownload
 
int dltotal
 
int dlnow
 
int lastFrameDelta
 
int dlRequest
 
int dlChecksums [MAX_PURE_PAKS]
 
int dlCount
 
idList< pakDlEntry_tdlList
 
int currentDlSize
 
int totalDlSize
 

Detailed Description

Definition at line 76 of file AsyncClient.h.

Constructor & Destructor Documentation

idAsyncClient::idAsyncClient ( void  )

Definition at line 46 of file AsyncClient.cpp.

Member Function Documentation

bool idAsyncClient::CheckTimeout ( void  )
private

Definition at line 2178 of file AsyncClient.cpp.

void idAsyncClient::Clear ( void  )
private

Definition at line 57 of file AsyncClient.cpp.

void idAsyncClient::ClearPendingPackets ( void  )
private

Definition at line 142 of file AsyncClient.cpp.

void idAsyncClient::ClearServers ( void  )

Definition at line 426 of file AsyncClient.cpp.

void idAsyncClient::ClosePort ( void  )

Definition at line 133 of file AsyncClient.cpp.

void idAsyncClient::ConnectionlessMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1525 of file AsyncClient.cpp.

void idAsyncClient::ConnectToServer ( const netadr_t  adr)

Definition at line 181 of file AsyncClient.cpp.

void idAsyncClient::ConnectToServer ( const char *  address)

Definition at line 232 of file AsyncClient.cpp.

void idAsyncClient::DisconnectFromServer ( void  )

Definition at line 263 of file AsyncClient.cpp.

void idAsyncClient::DuplicateUsercmds ( int  frame,
int  time 
)
private

Definition at line 562 of file AsyncClient.cpp.

int idAsyncClient::GetDownloadRequest ( const int  checksums[MAX_PURE_PAKS],
int  count,
int  gamePakChecksum 
)
private

Definition at line 2319 of file AsyncClient.cpp.

float idAsyncClient::GetIncomingCompression ( void  ) const

Definition at line 536 of file AsyncClient.cpp.

float idAsyncClient::GetIncomingPacketLoss ( void  ) const

Definition at line 549 of file AsyncClient.cpp.

int idAsyncClient::GetIncomingRate ( void  ) const

Definition at line 510 of file AsyncClient.cpp.

void idAsyncClient::GetLANServers ( void  )

Definition at line 351 of file AsyncClient.cpp.

int idAsyncClient::GetLocalClientNum ( void  ) const
inline

Definition at line 97 of file AsyncClient.h.

void idAsyncClient::GetNETServers ( void  )

Definition at line 382 of file AsyncClient.cpp.

float idAsyncClient::GetOutgoingCompression ( void  ) const

Definition at line 523 of file AsyncClient.cpp.

int idAsyncClient::GetOutgoingRate ( void  ) const

Definition at line 497 of file AsyncClient.cpp.

int idAsyncClient::GetPredictedFrames ( void  ) const
inline

Definition at line 105 of file AsyncClient.h.

int idAsyncClient::GetPrediction ( void  ) const

Definition at line 471 of file AsyncClient.cpp.

void idAsyncClient::GetServerInfo ( const netadr_t  adr)

Definition at line 298 of file AsyncClient.cpp.

void idAsyncClient::GetServerInfo ( const char *  address)

Definition at line 319 of file AsyncClient.cpp.

int idAsyncClient::GetTimeSinceLastPacket ( void  ) const

Definition at line 484 of file AsyncClient.cpp.

void idAsyncClient::HandleDownloads ( void  )
private

Definition at line 1963 of file AsyncClient.cpp.

const char * idAsyncClient::HandleGuiCommand ( const char *  cmd)
staticprivate

Definition at line 172 of file AsyncClient.cpp.

const char * idAsyncClient::HandleGuiCommandInternal ( const char *  cmd)
private

Definition at line 156 of file AsyncClient.cpp.

void idAsyncClient::Idle ( void  )
private

Definition at line 1743 of file AsyncClient.cpp.

void idAsyncClient::InitGame ( int  serverGameInitId,
int  serverGameFrame,
int  serverGameTime,
const idDict serverSI 
)
private

Definition at line 715 of file AsyncClient.cpp.

bool idAsyncClient::InitPort ( void  )

Definition at line 114 of file AsyncClient.cpp.

bool idAsyncClient::IsActive ( void  ) const
inline

Definition at line 96 of file AsyncClient.h.

bool idAsyncClient::IsPortInitialized ( )
inline

Definition at line 94 of file AsyncClient.h.

void idAsyncClient::ListServers ( void  )

Definition at line 413 of file AsyncClient.cpp.

void idAsyncClient::PacifierUpdate ( void  )

Definition at line 1898 of file AsyncClient.cpp.

void idAsyncClient::ProcessAuthKeyMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1269 of file AsyncClient.cpp.

void idAsyncClient::ProcessChallengeResponseMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1056 of file AsyncClient.cpp.

void idAsyncClient::ProcessConnectResponseMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1105 of file AsyncClient.cpp.

void idAsyncClient::ProcessDisconnectMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1149 of file AsyncClient.cpp.

void idAsyncClient::ProcessDownloadInfoMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 2193 of file AsyncClient.cpp.

void idAsyncClient::ProcessInfoResponseMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1168 of file AsyncClient.cpp.

void idAsyncClient::ProcessMessage ( const netadr_t  from,
idBitMsg msg 
)
private

Definition at line 1612 of file AsyncClient.cpp.

void idAsyncClient::ProcessPrintMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1211 of file AsyncClient.cpp.

void idAsyncClient::ProcessPureMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1489 of file AsyncClient.cpp.

void idAsyncClient::ProcessReliableMessagePure ( const idBitMsg msg)
private

Definition at line 877 of file AsyncClient.cpp.

void idAsyncClient::ProcessReliableServerMessages ( void  )
private

Definition at line 941 of file AsyncClient.cpp.

void idAsyncClient::ProcessServersListMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1252 of file AsyncClient.cpp.

void idAsyncClient::ProcessUnreliableServerMessage ( const idBitMsg msg)
private

Definition at line 734 of file AsyncClient.cpp.

void idAsyncClient::ProcessVersionMessage ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1356 of file AsyncClient.cpp.

void idAsyncClient::ReadLocalizedServerString ( const idBitMsg msg,
char *  out,
int  maxLen 
)
private

Definition at line 930 of file AsyncClient.cpp.

void idAsyncClient::Reconnect ( void  )

Definition at line 223 of file AsyncClient.cpp.

void idAsyncClient::RemoteConsole ( const char *  command)

Definition at line 435 of file AsyncClient.cpp.

void idAsyncClient::RunFrame ( void  )

Definition at line 1770 of file AsyncClient.cpp.

bool idAsyncClient::SendAuthCheck ( const char *  cdkey,
const char *  xpkey 
)

Definition at line 2156 of file AsyncClient.cpp.

void idAsyncClient::SendEmptyToServer ( bool  force = false,
bool  mapLoad = false 
)
private

Definition at line 607 of file AsyncClient.cpp.

void idAsyncClient::SendPingResponseToServer ( int  time)
private

Definition at line 643 of file AsyncClient.cpp.

void idAsyncClient::SendReliableGameMessage ( const idBitMsg msg)

Definition at line 1722 of file AsyncClient.cpp.

void idAsyncClient::SendUsercmdsToServer ( void  )
private

Definition at line 669 of file AsyncClient.cpp.

void idAsyncClient::SendUserInfoToServer ( void  )
private

Definition at line 579 of file AsyncClient.cpp.

void idAsyncClient::SendVersionCheck ( bool  fromMenu = false)

Definition at line 1911 of file AsyncClient.cpp.

void idAsyncClient::SendVersionDLUpdate ( int  state)
private

Definition at line 1946 of file AsyncClient.cpp.

void idAsyncClient::SetupConnection ( void  )
private

Definition at line 1652 of file AsyncClient.cpp.

void idAsyncClient::Shutdown ( void  )

Definition at line 99 of file AsyncClient.cpp.

int idAsyncClient::UpdateTime ( int  clamp)
private

Definition at line 1755 of file AsyncClient.cpp.

bool idAsyncClient::ValidatePureServerChecksums ( const netadr_t  from,
const idBitMsg msg 
)
private

Definition at line 1381 of file AsyncClient.cpp.

Member Data Documentation

bool idAsyncClient::active
private

Definition at line 120 of file AsyncClient.h.

backgroundDownload_t idAsyncClient::backgroundDownload
private

Definition at line 169 of file AsyncClient.h.

idMsgChannel idAsyncClient::channel
private

Definition at line 140 of file AsyncClient.h.

int idAsyncClient::clientDataChecksum
private

Definition at line 126 of file AsyncClient.h.

int idAsyncClient::clientId
private

Definition at line 125 of file AsyncClient.h.

int idAsyncClient::clientNum
private

Definition at line 127 of file AsyncClient.h.

idPort idAsyncClient::clientPort
private

Definition at line 124 of file AsyncClient.h.

int idAsyncClient::clientPrediction
private

Definition at line 129 of file AsyncClient.h.

int idAsyncClient::clientPredictTime
private

Definition at line 130 of file AsyncClient.h.

clientState_t idAsyncClient::clientState
private

Definition at line 128 of file AsyncClient.h.

int idAsyncClient::clientTime
private

Definition at line 123 of file AsyncClient.h.

int idAsyncClient::currentDlSize
private

Definition at line 179 of file AsyncClient.h.

int idAsyncClient::dlChecksums[MAX_PURE_PAKS]
private

Definition at line 176 of file AsyncClient.h.

int idAsyncClient::dlCount
private

Definition at line 177 of file AsyncClient.h.

idList<pakDlEntry_t> idAsyncClient::dlList
private

Definition at line 178 of file AsyncClient.h.

int idAsyncClient::dlnow
private

Definition at line 171 of file AsyncClient.h.

int idAsyncClient::dlRequest
private

Definition at line 175 of file AsyncClient.h.

int idAsyncClient::dltotal
private

Definition at line 170 of file AsyncClient.h.

int idAsyncClient::gameFrame
private

Definition at line 151 of file AsyncClient.h.

int idAsyncClient::gameInitId
private

Definition at line 150 of file AsyncClient.h.

int idAsyncClient::gameTime
private

Definition at line 152 of file AsyncClient.h.

int idAsyncClient::gameTimeResidual
private

Definition at line 153 of file AsyncClient.h.

idUserInterface* idAsyncClient::guiNetMenu
private

Definition at line 157 of file AsyncClient.h.

int idAsyncClient::lastConnectTime
private

Definition at line 141 of file AsyncClient.h.

int idAsyncClient::lastEmptyTime
private

Definition at line 142 of file AsyncClient.h.

int idAsyncClient::lastFrameDelta
private

Definition at line 173 of file AsyncClient.h.

int idAsyncClient::lastPacketTime
private

Definition at line 143 of file AsyncClient.h.

netadr_t idAsyncClient::lastRconAddress
private

Definition at line 137 of file AsyncClient.h.

int idAsyncClient::lastRconTime
private

Definition at line 138 of file AsyncClient.h.

int idAsyncClient::lastSnapshotTime
private

Definition at line 144 of file AsyncClient.h.

int idAsyncClient::realTime
private

Definition at line 121 of file AsyncClient.h.

netadr_t idAsyncClient::serverAddress
private

Definition at line 132 of file AsyncClient.h.

int idAsyncClient::serverChallenge
private

Definition at line 134 of file AsyncClient.h.

int idAsyncClient::serverId
private

Definition at line 133 of file AsyncClient.h.

idServerScan idAsyncClient::serverList

Definition at line 117 of file AsyncClient.h.

int idAsyncClient::serverMessageSequence
private

Definition at line 135 of file AsyncClient.h.

bool idAsyncClient::showUpdateMessage
private

Definition at line 167 of file AsyncClient.h.

int idAsyncClient::snapshotGameFrame
private

Definition at line 147 of file AsyncClient.h.

int idAsyncClient::snapshotGameTime
private

Definition at line 148 of file AsyncClient.h.

int idAsyncClient::snapshotSequence
private

Definition at line 146 of file AsyncClient.h.

int idAsyncClient::totalDlSize
private

Definition at line 180 of file AsyncClient.h.

bool idAsyncClient::updateDirectDownload
private

Definition at line 163 of file AsyncClient.h.

idStr idAsyncClient::updateFallback
private

Definition at line 166 of file AsyncClient.h.

idStr idAsyncClient::updateFile
private

Definition at line 164 of file AsyncClient.h.

dlMime_t idAsyncClient::updateMime
private

Definition at line 165 of file AsyncClient.h.

idStr idAsyncClient::updateMSG
private

Definition at line 161 of file AsyncClient.h.

int idAsyncClient::updateSentTime
private

Definition at line 160 of file AsyncClient.h.

clientUpdateState_t idAsyncClient::updateState
private

Definition at line 159 of file AsyncClient.h.

idStr idAsyncClient::updateURL
private

Definition at line 162 of file AsyncClient.h.

usercmd_t idAsyncClient::userCmds[MAX_USERCMD_BACKUP][MAX_ASYNC_CLIENTS]
private

Definition at line 155 of file AsyncClient.h.


The documentation for this class was generated from the following files: