29 #ifndef __ASYNCSERVER_H__
30 #define __ASYNCSERVER_H__
169 void DropClient(
int clientNum,
const char *reason );
222 void InitClient(
int clientNum,
int clientId,
int clientRate );
const int MAX_ASYNC_CLIENTS
int GetIncomingRate(void) const
void ProcessPureMessage(const netadr_t from, const idBitMsg &msg)
int GetNumIdleClients(void) const
bool IsActive(void) const
serverClientState_t clientState
netadr_t GetBoundAdr(void) const
void ExecuteMapChange(void)
int acknowledgeSnapshotSequence
bool VerifyChecksumMessage(int clientNum, const netadr_t *from, const idBitMsg &msg, idStr &reply, int OS)
void SendApplySnapshotToClient(int clientNum, int sequence)
void SendReliableGameMessageExcluding(int clientNum, const idBitMsg &msg)
struct serverClient_s serverClient_t
void ProcessReliableClientMessages(int clientNum)
usercmd_t userCmds[MAX_USERCMD_BACKUP][MAX_ASYNC_CLIENTS]
bool IsClientInGame(int clientNum) const
void SendUserInfoBroadcast(int userInfoNum, const idDict &info, bool sendToAll=false)
void PacifierUpdate(void)
int GetNumClients(void) const
bool serverReloadingEngine
bool ConnectionlessMessage(const netadr_t from, const idBitMsg &msg)
int ValidateChallenge(const netadr_t from, int challenge, int clientId)
struct challenge_s challenge_t
int UpdateTime(int clamp)
void CheckClientTimeouts(void)
int GetClientTimeSinceLastInput(int clientNum) const
bool ProcessMessage(const netadr_t from, idBitMsg &msg)
void ProcessReliablePure(int clientNum, const idBitMsg &msg)
serverClient_t clients[MAX_ASYNC_CLIENTS]
float GetClientOutgoingCompression(int clientNum) const
void SendSyncedCvarsBroadcast(const idDict &cvars)
const int AUTHORIZE_TIMEOUT
void ProcessConnectMessage(const netadr_t from, const idBitMsg &msg)
void SendSyncedCvarsToClient(int clientNum, const idDict &cvars)
void LocalClientInput(void)
void PrintOOB(const netadr_t to, int opcode, const char *string)
void ProcessGetInfoMessage(const netadr_t from, const idBitMsg &msg)
void ProcessUnreliableClientMessage(int clientNum, const idBitMsg &msg)
void SendUserInfoToClient(int clientNum, int userInfoNum, const idDict &info)
bool SendPingToClient(int clientNum)
challenge_t challenges[MAX_CHALLENGES]
void SendPrintBroadcast(const char *string)
void BeginLocalClient(void)
void GetAsyncStatsAvgMsg(idStr &msg)
bool SendPureServerMessage(const netadr_t to, int OS)
int GetClientPrediction(int clientNum) const
void PrintLocalServerInfo(void)
bool SendReliablePureToClient(int clientNum)
int GetClientIncomingRate(int clientNum) const
void SendEnterGameToClient(int clientNum)
static const int stats_numsamples
void ProcessDownloadRequestMessage(const netadr_t from, const idBitMsg &msg)
void LocalClientSendReliableMessage(const idBitMsg &msg)
void SendReliableMessage(int clientNum, const idBitMsg &msg)
int GetClientOutgoingRate(int clientNum) const
void InitClient(int clientNum, int clientId, int clientRate)
int numDuplicatedUsercmds
void SendReliableGameMessage(int clientNum, const idBitMsg &msg)
void DropClient(int clientNum, const char *reason)
void ProcessChallengeMessage(const netadr_t from, const idBitMsg &msg)
void UpdateUI(int clientNum)
int GetClientTimeSinceLastPacket(int clientNum) const
void ProcessRemoteConsoleMessage(const netadr_t from, const idBitMsg &msg)
void ProcessAuthMessage(const idBitMsg &msg)
int GetLocalClientNum(void) const
float GetClientIncomingCompression(int clientNum) const
float GetClientIncomingPacketLoss(int clientNum) const
authReplyMsg_t authReplyMsg
bool SendSnapshotToClient(int clientNum)
int stats_outrate[stats_numsamples]
void SendPrintToClient(int clientNum, const char *string)
void UpdateAsyncStatsAvg(void)
bool SendEmptyToClient(int clientNum, bool force=false)
void MasterHeartbeat(bool force=false)
void RemoteConsoleOutput(const char *string)
const int MAX_USERCMD_BACKUP
void ClearClient(int clientNum)
void InitLocalClient(int clientNum)
void SendGameInitToClient(int clientNum)
int GetClientPing(int clientNum) const
void ProcessConnectionLessMessages(void)
void DuplicateUsercmds(int frame, int time)
int GetOutgoingRate(void) const