DDraceNetwork Docs
CServerBrowserPingCache Class Reference
Inheritance diagram for CServerBrowserPingCache:
[legend]
Collaboration diagram for CServerBrowserPingCache:
[legend]

Classes

class  CEntry
 

Public Member Functions

 CServerBrowserPingCache (IConsole *pConsole, IStorage *pStorage)
 
 ~CServerBrowserPingCache () override=default
 
void Load () override
 
int NumEntries () const override
 
void CachePing (const NETADDR &Addr, int Ping) override
 
int GetPing (const NETADDR *pAddrs, int NumAddrs) const override
 
- Public Member Functions inherited from IServerBrowserPingCache
virtual ~IServerBrowserPingCache ()
 
virtual void Load ()=0
 
virtual int NumEntries () const =0
 
virtual void CachePing (const NETADDR &Addr, int Ping)=0
 
virtual int GetPing (const NETADDR *pAddrs, int NumAddrs) const =0
 

Private Attributes

IConsolem_pConsole
 
CSqlite m_pDisk
 
CSqliteStmt m_pLoadStmt
 
CSqliteStmt m_pStoreStmt
 
std::unordered_map< NETADDR, int > m_Entries
 

Constructor & Destructor Documentation

◆ CServerBrowserPingCache()

CServerBrowserPingCache::CServerBrowserPingCache ( IConsole pConsole,
IStorage pStorage 
)

◆ ~CServerBrowserPingCache()

CServerBrowserPingCache::~CServerBrowserPingCache ( )
overridedefault

Member Function Documentation

◆ CachePing()

void CServerBrowserPingCache::CachePing ( const NETADDR Addr,
int  Ping 
)
overridevirtual

◆ GetPing()

int CServerBrowserPingCache::GetPing ( const NETADDR pAddrs,
int  NumAddrs 
) const
overridevirtual

◆ Load()

void CServerBrowserPingCache::Load ( )
overridevirtual

◆ NumEntries()

int CServerBrowserPingCache::NumEntries ( ) const
overridevirtual

Member Data Documentation

◆ m_Entries

std::unordered_map<NETADDR, int> CServerBrowserPingCache::m_Entries
private

◆ m_pConsole

IConsole* CServerBrowserPingCache::m_pConsole
private

◆ m_pDisk

CSqlite CServerBrowserPingCache::m_pDisk
private

◆ m_pLoadStmt

CSqliteStmt CServerBrowserPingCache::m_pLoadStmt
private

◆ m_pStoreStmt

CSqliteStmt CServerBrowserPingCache::m_pStoreStmt
private

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