DDraceNetwork Docs
serverbrowser.cpp File Reference
#include "serverbrowser.h"
#include "serverbrowser_http.h"
#include "serverbrowser_ping_cache.h"
#include <algorithm>
#include <unordered_set>
#include <vector>
#include <base/hash_ctxt.h>
#include <base/log.h>
#include <base/system.h>
#include <engine/shared/config.h>
#include <engine/shared/json.h>
#include <engine/shared/masterserver.h>
#include <engine/shared/network.h>
#include <engine/shared/protocol.h>
#include <engine/shared/serverinfo.h>
#include <engine/console.h>
#include <engine/engine.h>
#include <engine/favorites.h>
#include <engine/friends.h>
#include <engine/http.h>
#include <engine/storage.h>
Include dependency graph for serverbrowser.cpp:

Classes

class  CSortWrap
 

Functions

bool matchesPart (const char *a, const char *b)
 
bool matchesExactly (const char *a, const char *b)
 
static bool ValidIdentifier (const char *pId, size_t MaxLength)
 
static bool ValidateIdentifier (const char *pId, size_t MaxLength, const char *pContext, IConsole *pConsole)
 
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::unordered_set< TElementName > &Right)
 

Function Documentation

◆ IsSubsetEquals()

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

◆ matchesExactly()

bool matchesExactly ( const char *  a,
const char *  b 
)

◆ matchesPart()

bool matchesPart ( const char *  a,
const char *  b 
)

◆ ServerBrowserFormatAddresses()

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

◆ ValidateIdentifier()

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

◆ ValidIdentifier()

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