8#ifndef MATCHMAKINGTYPES_H
9#define MATCHMAKINGTYPES_H
142 static char s[4][64];
144 unsigned char *ipByte = (
unsigned char *)&unIP;
145#ifdef VALVE_BIG_ENDIAN
146 snprintf(s[nBuf],
sizeof( s[nBuf] ),
"%u.%u.%u.%u:%i", (
int)(ipByte[0]), (
int)(ipByte[1]), (
int)(ipByte[2]), (
int)(ipByte[3]), usPort );
148 snprintf(s[nBuf],
sizeof( s[nBuf] ),
"%u.%u.%u.%u:%i", (
int)(ipByte[3]), (
int)(ipByte[2]), (
int)(ipByte[1]), (
int)(ipByte[0]), usPort );
150 const char *pchRet = s[nBuf];
152 nBuf %= ( (
sizeof(s)/
sizeof(s[0])) );
180 void SetName(
const char *pName );
char m_szGameDescription[k_cbMaxGameServerGameDescription]
game description
const char * GetName() const
char m_szGameTags[k_cbMaxGameServerTags]
the tags this server exposes
uint32 m_nAppID
Steam App ID of this server.
int m_nPing
current ping time in milliseconds
int m_nServerVersion
server version as reported to Steam
uint32 m_ulTimeLastPlayed
time (in unix time) when this server was last played on (for favorite/history servers)
bool m_bPassword
true if this server needs a password to join
CSteamID m_steamID
steamID of the game server - invalid if it's doesn't have one (old server, or not connected to Steam)
servernetadr_t m_NetAdr
IP/Query Port/Connection Port for this server.
bool m_bSecure
Is this server protected by VAC.
int m_nCurrentFriendCount
count of friends currently on server
int m_nTotalFriendCount
total count of friends who have played on server
bool operator==(const gameserveritem_t &rhs) const
char m_szGameDir[k_cbMaxGameServerGameDir]
current game directory
bool m_bDoNotRefresh
server is marked as not responding and should no longer be refreshed
char m_szServerName[k_cbMaxGameServerName]
Game server name.
void SetName(const char *pName)
int m_nBotPlayers
Number of bots (i.e simulated players) on this server.
int m_nPlayers
total number of players currently on the server. INCLUDES BOTS!!
int m_nMaxPlayers
Maximum players that can join this server.
char m_szMap[k_cbMaxGameServerMapName]
current map
bool m_bHadSuccessfulResponse
server has responded successfully in the past
void Init(unsigned int ip, uint16 usQueryPort, uint16 usConnectionPort)
void SetQueryPort(uint16 usPort)
uint16 GetQueryPort() const
const char * ToString(uint32 unIP, uint16 usPort) const
bool operator==(const servernetadr_t &rhs) const
const char * GetQueryAddressString() const
bool operator<(const servernetadr_t &netadr) const
const char * GetConnectionAddressString() const
void operator=(const servernetadr_t &that)
uint16 GetConnectionPort() const
void SetConnectionPort(uint16 usPort)
uint16 m_usConnectionPort
EMatchMakingServerResponse
@ eNoServersListedOnMasterServer
const int k_cbMaxGameServerGameDir
const int k_cbMaxGameServerName
const int k_cbMaxGameServerGameDescription
const int k_cbMaxGameServerGameData
const int k_cbMaxGameServerMapName
const int k_cbMaxGameServerTags
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
MatchMakingKeyValuePair_t(const char *pchKey, const char *pchValue)
MatchMakingKeyValuePair_t()