DDraceNetwork Docs
CServerInfo Class Reference

#include <serverbrowser.h>

Collaboration diagram for CServerInfo:
[legend]

Classes

class  CClient
 

Public Types

enum  {
  LOC_UNKNOWN = 0 , LOC_AFRICA , LOC_ASIA , LOC_AUSTRALIA ,
  LOC_EUROPE , LOC_NORTH_AMERICA , LOC_SOUTH_AMERICA , LOC_CHINA ,
  NUM_LOCS
}
 
enum  EClientScoreKind { CLIENT_SCORE_KIND_UNSPECIFIED , CLIENT_SCORE_KIND_POINTS , CLIENT_SCORE_KIND_TIME , CLIENT_SCORE_KIND_TIME_BACKCOMPAT }
 
enum  ERankState { RANK_UNAVAILABLE , RANK_RANKED , RANK_UNRANKED }
 
enum  { MAX_COMMUNITY_ID_LENGTH = 32 , MAX_COMMUNITY_COUNTRY_LENGTH = 32 , MAX_COMMUNITY_TYPE_LENGTH = 32 }
 

Static Public Member Functions

static int EstimateLatency (int Loc1, int Loc2)
 
static bool ParseLocation (int *pResult, const char *pString)
 

Public Attributes

int m_ServerIndex
 
int m_Type
 
uint64_t m_ReceivedPackets
 
int m_NumReceivedClients
 
int m_NumAddresses
 
NETADDR m_aAddresses [MAX_SERVER_ADDRESSES]
 
int m_QuickSearchHit
 
int m_FriendState
 
int m_FriendNum
 
int m_MaxClients
 
int m_NumClients
 
int m_MaxPlayers
 
int m_NumPlayers
 
int m_Flags
 
EClientScoreKind m_ClientScoreKind
 
TRISTATE m_Favorite
 
TRISTATE m_FavoriteAllowPing
 
char m_aCommunityId [MAX_COMMUNITY_ID_LENGTH]
 
char m_aCommunityCountry [MAX_COMMUNITY_COUNTRY_LENGTH]
 
char m_aCommunityType [MAX_COMMUNITY_TYPE_LENGTH]
 
int m_Location
 
bool m_LatencyIsEstimated
 
int m_Latency
 
ERankState m_HasRank
 
char m_aGameType [16]
 
char m_aName [64]
 
char m_aMap [MAX_MAP_LENGTH]
 
int m_MapCrc
 
int m_MapSize
 
char m_aVersion [32]
 
char m_aAddress [MAX_SERVER_ADDRESSES *NETADDR_MAXSTRSIZE]
 
CClient m_aClients [SERVERINFO_MAX_CLIENTS]
 
int m_NumFilteredPlayers
 
bool m_RequiresLogin
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
LOC_UNKNOWN 
LOC_AFRICA 
LOC_ASIA 
LOC_AUSTRALIA 
LOC_EUROPE 
LOC_NORTH_AMERICA 
LOC_SOUTH_AMERICA 
LOC_CHINA 
NUM_LOCS 

◆ anonymous enum

anonymous enum
Enumerator
MAX_COMMUNITY_ID_LENGTH 
MAX_COMMUNITY_COUNTRY_LENGTH 
MAX_COMMUNITY_TYPE_LENGTH 

◆ EClientScoreKind

Enumerator
CLIENT_SCORE_KIND_UNSPECIFIED 
CLIENT_SCORE_KIND_POINTS 
CLIENT_SCORE_KIND_TIME 
CLIENT_SCORE_KIND_TIME_BACKCOMPAT 

◆ ERankState

Enumerator
RANK_UNAVAILABLE 
RANK_RANKED 
RANK_UNRANKED 

Member Function Documentation

◆ EstimateLatency()

int CServerInfo::EstimateLatency ( int  Loc1,
int  Loc2 
)
static

◆ ParseLocation()

bool CServerInfo::ParseLocation ( int *  pResult,
const char *  pString 
)
static

Member Data Documentation

◆ m_aAddress

char CServerInfo::m_aAddress[MAX_SERVER_ADDRESSES *NETADDR_MAXSTRSIZE]

◆ m_aAddresses

NETADDR CServerInfo::m_aAddresses[MAX_SERVER_ADDRESSES]

◆ m_aClients

CClient CServerInfo::m_aClients[SERVERINFO_MAX_CLIENTS]

◆ m_aCommunityCountry

char CServerInfo::m_aCommunityCountry[MAX_COMMUNITY_COUNTRY_LENGTH]

◆ m_aCommunityId

char CServerInfo::m_aCommunityId[MAX_COMMUNITY_ID_LENGTH]

◆ m_aCommunityType

char CServerInfo::m_aCommunityType[MAX_COMMUNITY_TYPE_LENGTH]

◆ m_aGameType

char CServerInfo::m_aGameType[16]

◆ m_aMap

char CServerInfo::m_aMap[MAX_MAP_LENGTH]

◆ m_aName

char CServerInfo::m_aName[64]

◆ m_aVersion

char CServerInfo::m_aVersion[32]

◆ m_ClientScoreKind

EClientScoreKind CServerInfo::m_ClientScoreKind

◆ m_Favorite

TRISTATE CServerInfo::m_Favorite

◆ m_FavoriteAllowPing

TRISTATE CServerInfo::m_FavoriteAllowPing

◆ m_Flags

int CServerInfo::m_Flags

◆ m_FriendNum

int CServerInfo::m_FriendNum

◆ m_FriendState

int CServerInfo::m_FriendState

◆ m_HasRank

ERankState CServerInfo::m_HasRank

◆ m_Latency

int CServerInfo::m_Latency

◆ m_LatencyIsEstimated

bool CServerInfo::m_LatencyIsEstimated

◆ m_Location

int CServerInfo::m_Location

◆ m_MapCrc

int CServerInfo::m_MapCrc

◆ m_MapSize

int CServerInfo::m_MapSize

◆ m_MaxClients

int CServerInfo::m_MaxClients

◆ m_MaxPlayers

int CServerInfo::m_MaxPlayers

◆ m_NumAddresses

int CServerInfo::m_NumAddresses

◆ m_NumClients

int CServerInfo::m_NumClients

◆ m_NumFilteredPlayers

int CServerInfo::m_NumFilteredPlayers

◆ m_NumPlayers

int CServerInfo::m_NumPlayers

◆ m_NumReceivedClients

int CServerInfo::m_NumReceivedClients

◆ m_QuickSearchHit

int CServerInfo::m_QuickSearchHit

◆ m_ReceivedPackets

uint64_t CServerInfo::m_ReceivedPackets

◆ m_RequiresLogin

bool CServerInfo::m_RequiresLogin

◆ m_ServerIndex

int CServerInfo::m_ServerIndex

◆ m_Type

int CServerInfo::m_Type

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