DDraceNetwork Docs
serverbrowser_ping_cache.h
Go to the documentation of this file.
1#ifndef ENGINE_CLIENT_SERVERBROWSER_PING_CACHE_H
2#define ENGINE_CLIENT_SERVERBROWSER_PING_CACHE_H
3#include <base/types.h>
4
5class IConsole;
6class IStorage;
7
9{
10public:
12
13 virtual void Load() = 0;
14
15 virtual int NumEntries() const = 0;
16 virtual void CachePing(const NETADDR &Addr, int Ping) = 0;
17 // Returns -1 if the ping isn't cached.
18 virtual int GetPing(const NETADDR *pAddrs, int NumAddrs) const = 0;
19};
20
22#endif // ENGINE_CLIENT_SERVERBROWSER_PING_CACHE_H
Definition: console.h:18
Definition: serverbrowser_ping_cache.h:9
virtual int NumEntries() const =0
virtual void CachePing(const NETADDR &Addr, int Ping)=0
virtual void Load()=0
virtual ~IServerBrowserPingCache()
Definition: serverbrowser_ping_cache.h:11
virtual int GetPing(const NETADDR *pAddrs, int NumAddrs) const =0
Definition: storage.h:20
IServerBrowserPingCache * CreateServerBrowserPingCache(IConsole *pConsole, IStorage *pStorage)
Definition: serverbrowser_ping_cache.cpp:165
Definition: types.h:67