DDraceNetwork Documentation
Loading...
Searching...
No Matches
serverbrowser.cpp File Reference
#include "serverbrowser.h"
#include "serverbrowser_http.h"
#include "serverbrowser_ping_cache.h"
#include <base/hash_ctxt.h>
#include <base/log.h>
#include <base/system.h>
#include <engine/console.h>
#include <engine/engine.h>
#include <engine/favorites.h>
#include <engine/friends.h>
#include <engine/http.h>
#include <engine/shared/config.h>
#include <engine/shared/json.h>
#include <engine/shared/masterserver.h>
#include <engine/shared/network.h>
#include <engine/shared/packer.h>
#include <engine/shared/protocol.h>
#include <engine/shared/serverinfo.h>
#include <engine/storage.h>
#include <algorithm>
#include <map>
#include <set>
#include <vector>
Include dependency graph for serverbrowser.cpp:

Classes

class  CSortWrap

Functions

static bool MatchesPart (const char *a, const char *b)
static bool MatchesExactly (const char *a, const char *b)
static NETADDR CommunityAddressKey (const NETADDR &Addr)
static bool ValidIdentifier (const char *pId, size_t MaxLength)
static bool ValidateIdentifier (const char *pId, size_t MaxLength, const char *pContext, IConsole *pConsole)
static void ServerBrowserFormatAddresses (char *pBuffer, int BufferSize, NETADDR *pAddrs, int NumAddrs)
template<typename TNamedElement, typename TElementName>
static bool IsSubsetEquals (const std::vector< const TNamedElement * > &vpLeft, const std::set< TElementName > &Right)

Function Documentation

◆ CommunityAddressKey()

NETADDR CommunityAddressKey ( const NETADDR & Addr)
static

◆ IsSubsetEquals()

template<typename TNamedElement, typename TElementName>
bool IsSubsetEquals ( const std::vector< const TNamedElement * > & vpLeft,
const std::set< TElementName > & Right )
static

◆ MatchesExactly()

bool MatchesExactly ( const char * a,
const char * b )
static

◆ MatchesPart()

bool MatchesPart ( const char * a,
const char * b )
static

◆ ServerBrowserFormatAddresses()

void ServerBrowserFormatAddresses ( char * pBuffer,
int BufferSize,
NETADDR * pAddrs,
int NumAddrs )
static

◆ ValidateIdentifier()

bool ValidateIdentifier ( const char * pId,
size_t MaxLength,
const char * pContext,
IConsole * pConsole )
static

◆ ValidIdentifier()

bool ValidIdentifier ( const char * pId,
size_t MaxLength )
static