#include <serverbrowser.h>
|
| int | GenerateToken (const NETADDR &Addr) const |
| |
| bool | SortCompareName (int Index1, int Index2) const |
| |
| bool | SortCompareMap (int Index1, int Index2) const |
| |
| bool | SortComparePing (int Index1, int Index2) const |
| |
| bool | SortCompareGametype (int Index1, int Index2) const |
| |
| bool | SortCompareNumPlayers (int Index1, int Index2) const |
| |
| bool | SortCompareNumClients (int Index1, int Index2) const |
| |
| bool | SortCompareNumFriends (int Index1, int Index2) const |
| |
| bool | SortCompareNumPlayersAndPing (int Index1, int Index2) const |
| |
| void | Filter () |
| |
| void | Sort () |
| |
| int | SortHash () const |
| |
| void | CleanUp () |
| |
| void | UpdateFromHttp () |
| |
| CServerEntry * | Add (const NETADDR *pAddrs, int NumAddrs) |
| |
| CServerEntry * | ReplaceEntry (CServerEntry *pEntry, const NETADDR *pAddrs, int NumAddrs) |
| |
| void | RemoveRequest (CServerEntry *pEntry) |
| |
| void | RequestImpl (const NETADDR &Addr, CServerEntry *pEntry, int *pBasicToken, int *pToken, bool RandomToken) const |
| |
| void | RegisterCommands () |
| |
| bool | ValidateCommunityId (const char *pCommunityId) const |
| |
| bool | ValidateCountryName (const char *pCountryName) const |
| |
| bool | ValidateTypeName (const char *pTypeName) const |
| |
| void | SetInfo (CServerEntry *pEntry, const CServerInfo &Info) const |
| |
| void | SetLatency (NETADDR Addr, int Latency) |
| |
|
| static int | GetBasicToken (int Token) |
| |
| static int | GetExtraToken (int Token) |
| |
| static void | ConfigSaveCallback (IConfigManager *pConfigManager, void *pUserData) |
| |
| static void | Con_AddFavoriteCommunity (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_RemoveFavoriteCommunity (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_AddExcludedCommunity (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_RemoveExcludedCommunity (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_AddExcludedCountry (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_RemoveExcludedCountry (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_AddExcludedType (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_RemoveExcludedType (IConsole::IResult *pResult, void *pUserData) |
| |
| static void | Con_LeakIpAddress (IConsole::IResult *pResult, void *pUserData) |
| |
| static bool | ParseCommunityFinishes (CCommunity *pCommunity, const json_value &Finishes) |
| |
| static bool | ParseCommunityServers (CCommunity *pCommunity, const json_value &Servers) |
| |
|
| enum | {
SORT_NAME = 0
, SORT_PING
, SORT_MAP
, SORT_GAMETYPE
,
SORT_NUMPLAYERS
, SORT_NUMFRIENDS
, QUICK_SERVERNAME = 1
, QUICK_PLAYER = 2
,
QUICK_MAPNAME = 4
, TYPE_INTERNET = 0
, TYPE_LAN
, TYPE_FAVORITES
,
TYPE_FAVORITE_COMMUNITY_1
, TYPE_FAVORITE_COMMUNITY_2
, TYPE_FAVORITE_COMMUNITY_3
, TYPE_FAVORITE_COMMUNITY_4
,
TYPE_FAVORITE_COMMUNITY_5
, NUM_TYPES
, LAN_PORT_BEGIN = 8303
, LAN_PORT_END = 8310
} |
| |
| static const char * | InterfaceName () |
| |
| static constexpr const char * | COMMUNITY_DDNET = "ddnet" |
| |
| static constexpr const char * | COMMUNITY_NONE = "none" |
| |
| static constexpr const char * | COMMUNITY_COUNTRY_NONE = "none" |
| |
| static constexpr const char * | COMMUNITY_TYPE_NONE = "None" |
| |
| static constexpr const char * | COMMUNITY_ALL = "all" |
| |
| static constexpr const char * | SEARCH_EXCLUDE_TOKEN = ";" |
| |
| IKernel * | Kernel () |
| |
◆ CServerBrowser()
| CServerBrowser::CServerBrowser |
( |
| ) |
|
◆ ~CServerBrowser()
| CServerBrowser::~CServerBrowser |
( |
| ) |
|
|
virtual |
◆ Add()
◆ CleanFilters()
| void CServerBrowser::CleanFilters |
( |
| ) |
|
|
overridevirtual |
◆ CleanUp()
| void CServerBrowser::CleanUp |
( |
| ) |
|
|
private |
◆ Communities()
◆ CommunitiesFilter() [1/2]
◆ CommunitiesFilter() [2/2]
◆ Community()
◆ CommunityCache() [1/2]
◆ CommunityCache() [2/2]
◆ Con_AddExcludedCommunity()
◆ Con_AddExcludedCountry()
◆ Con_AddExcludedType()
◆ Con_AddFavoriteCommunity()
◆ Con_LeakIpAddress()
◆ Con_RemoveExcludedCommunity()
◆ Con_RemoveExcludedCountry()
◆ Con_RemoveExcludedType()
◆ Con_RemoveFavoriteCommunity()
◆ ConfigSaveCallback()
◆ CountriesFilter() [1/2]
◆ CountriesFilter() [2/2]
◆ CurrentCommunities()
| std::vector< const CCommunity * > CServerBrowser::CurrentCommunities |
( |
| ) |
const |
|
overridevirtual |
◆ CurrentCommunitiesHash()
| unsigned CServerBrowser::CurrentCommunitiesHash |
( |
| ) |
const |
|
overridevirtual |
◆ DDNetInfoAvailable()
| bool CServerBrowser::DDNetInfoAvailable |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ DDNetInfoSha256()
◆ FavoriteCommunities()
| std::vector< const CCommunity * > CServerBrowser::FavoriteCommunities |
( |
| ) |
const |
|
overridevirtual |
◆ FavoriteCommunitiesFilter() [1/2]
◆ FavoriteCommunitiesFilter() [2/2]
◆ Filter()
| void CServerBrowser::Filter |
( |
| ) |
|
|
private |
◆ Find()
◆ GenerateToken()
◆ GetBasicToken()
| int CServerBrowser::GetBasicToken |
( |
int |
Token | ) |
|
|
staticprivate |
◆ GetCurrentType()
| int CServerBrowser::GetCurrentType |
( |
| ) |
|
|
inlineoverridevirtual |
◆ GetExtraToken()
| int CServerBrowser::GetExtraToken |
( |
int |
Token | ) |
|
|
staticprivate |
◆ GetTutorialServer()
| const char * CServerBrowser::GetTutorialServer |
( |
| ) |
|
|
overridevirtual |
◆ IsGettingServerlist()
| bool CServerBrowser::IsGettingServerlist |
( |
| ) |
const |
|
overridevirtual |
◆ IsRefreshing()
| bool CServerBrowser::IsRefreshing |
( |
| ) |
const |
|
overridevirtual |
◆ IsRegistered()
◆ IsServerlistError()
| bool CServerBrowser::IsServerlistError |
( |
| ) |
const |
|
overridevirtual |
◆ LoadDDNetInfo()
◆ LoadDDNetInfoJson()
| void CServerBrowser::LoadDDNetInfoJson |
( |
| ) |
|
◆ LoadDDNetLocation()
| void CServerBrowser::LoadDDNetLocation |
( |
| ) |
|
◆ LoadDDNetServers()
| void CServerBrowser::LoadDDNetServers |
( |
| ) |
|
◆ LoadingProgression()
| int CServerBrowser::LoadingProgression |
( |
| ) |
const |
|
overridevirtual |
◆ Max()
◆ NumServers()
| int CServerBrowser::NumServers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ NumSortedPlayers()
| int CServerBrowser::NumSortedPlayers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ NumSortedServers()
| int CServerBrowser::NumSortedServers |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ OnInit()
| void CServerBrowser::OnInit |
( |
| ) |
|
◆ OnServerInfoUpdate()
◆ ParseCommunityFinishes()
◆ ParseCommunityServers()
◆ Players()
◆ QueueRequest()
◆ Refresh()
◆ RegisterCommands()
| void CServerBrowser::RegisterCommands |
( |
| ) |
|
|
private |
◆ RemoveRequest()
◆ ReplaceEntry()
◆ RequestCurrentServer()
◆ RequestCurrentServerWithRandomToken()
| void CServerBrowser::RequestCurrentServerWithRandomToken |
( |
const NETADDR & |
Addr, |
|
|
int * |
pBasicToken, |
|
|
int * |
pToken |
|
) |
| const |
◆ RequestImpl()
◆ RequestResort()
| void CServerBrowser::RequestResort |
( |
| ) |
|
|
inline |
◆ SelectedCommunities()
| std::vector< const CCommunity * > CServerBrowser::SelectedCommunities |
( |
| ) |
const |
|
overridevirtual |
◆ SetBaseInfo()
◆ SetCurrentServerPing()
◆ SetHttpInfo()
◆ SetInfo()
◆ SetLatency()
◆ Sort()
| void CServerBrowser::Sort |
( |
| ) |
|
|
private |
◆ SortCompareGametype()
| bool CServerBrowser::SortCompareGametype |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortCompareMap()
| bool CServerBrowser::SortCompareMap |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortCompareName()
| bool CServerBrowser::SortCompareName |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortCompareNumClients()
| bool CServerBrowser::SortCompareNumClients |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortCompareNumFriends()
| bool CServerBrowser::SortCompareNumFriends |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortCompareNumPlayers()
| bool CServerBrowser::SortCompareNumPlayers |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortCompareNumPlayersAndPing()
| bool CServerBrowser::SortCompareNumPlayersAndPing |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortComparePing()
| bool CServerBrowser::SortComparePing |
( |
int |
Index1, |
|
|
int |
Index2 |
|
) |
| const |
|
private |
◆ SortedGet()
◆ SortHash()
| int CServerBrowser::SortHash |
( |
| ) |
const |
|
private |
◆ TypesFilter() [1/2]
◆ TypesFilter() [2/2]
◆ Update()
| void CServerBrowser::Update |
( |
| ) |
|
◆ UpdateFromHttp()
| void CServerBrowser::UpdateFromHttp |
( |
| ) |
|
|
private |
◆ UpdateServerCommunity()
◆ UpdateServerFilteredPlayers()
| void CServerBrowser::UpdateServerFilteredPlayers |
( |
CServerInfo * |
pInfo | ) |
const |
◆ UpdateServerFriends()
◆ UpdateServerRank()
◆ ValidateCommunityId()
| bool CServerBrowser::ValidateCommunityId |
( |
const char * |
pCommunityId | ) |
const |
|
private |
◆ ValidateCountryName()
| bool CServerBrowser::ValidateCountryName |
( |
const char * |
pCountryName | ) |
const |
|
private |
◆ ValidateTypeName()
| bool CServerBrowser::ValidateTypeName |
( |
const char * |
pTypeName | ) |
const |
|
private |
◆ m_aNetVersion
| char CServerBrowser::m_aNetVersion[128] |
|
private |
◆ m_aTokenSeed
◆ m_BroadcastTime
| int64_t CServerBrowser::m_BroadcastTime |
|
private |
◆ m_ByAddr
| std::unordered_map<NETADDR, int> CServerBrowser::m_ByAddr |
|
private |
◆ m_CommunitiesFilter
◆ m_CommunityCache
◆ m_CommunityServersByAddr
◆ m_CountriesFilter
◆ m_CurrentMaxRequests
| int CServerBrowser::m_CurrentMaxRequests |
|
private |
◆ m_DDNetInfoSha256
◆ m_FavoriteCommunitiesFilter
◆ m_NeedResort
| bool CServerBrowser::m_NeedResort |
|
private |
◆ m_NumRequests
| int CServerBrowser::m_NumRequests |
|
private |
◆ m_NumServerCapacity
| int CServerBrowser::m_NumServerCapacity |
|
private |
◆ m_NumServers
| int CServerBrowser::m_NumServers |
|
private |
◆ m_NumSortedPlayers
| int CServerBrowser::m_NumSortedPlayers |
|
private |
◆ m_NumSortedServers
| int CServerBrowser::m_NumSortedServers |
|
private |
◆ m_NumSortedServersCapacity
| int CServerBrowser::m_NumSortedServersCapacity |
|
private |
◆ m_OwnLocation
◆ m_pConfigManager
◆ m_pConsole
◆ m_pDDNetInfo
◆ m_pEngine
◆ m_pFavorites
◆ m_pFirstReqServer
◆ m_pFriends
◆ m_pHttp
◆ m_pHttpClient
◆ m_pHttpPrevBestUrl
◆ m_pLastReqServer
◆ m_pNetClient
◆ m_pPingCache
◆ m_ppServerlist
◆ m_pSortedServerlist
| int* CServerBrowser::m_pSortedServerlist |
|
private |
◆ m_pStorage
◆ m_RefreshingHttp
| bool CServerBrowser::m_RefreshingHttp = false |
|
private |
◆ m_ServerlistHeap
| CHeap CServerBrowser::m_ServerlistHeap |
|
private |
◆ m_ServerlistType
| int CServerBrowser::m_ServerlistType |
|
private |
◆ m_Sorthash
| int CServerBrowser::m_Sorthash |
|
private |
◆ m_TypesFilter
◆ m_vCommunities
| std::vector<CCommunity> CServerBrowser::m_vCommunities |
|
private |
The documentation for this class was generated from the following files: