![]() |
DDraceNetwork Documentation
|
#include <netban.h>
Classes | |
| struct | CBan |
| struct | CBanInfo |
| class | CBanPool |
| class | CNetHash |
Public Types | |
| enum | { MSGTYPE_PLAYER = 0 , MSGTYPE_LIST , MSGTYPE_BANADD , MSGTYPE_BANREM } |
Public Member Functions | |
| class IConsole * | Console () const |
| class IStorage * | Storage () const |
| virtual | ~CNetBan ()=default |
| void | Init (class IConsole *pConsole, class IStorage *pStorage) |
| void | Update () |
| virtual int | BanAddr (const NETADDR *pAddr, int Seconds, const char *pReason, bool VerbatimReason) |
| virtual int | BanRange (const CNetRange *pRange, int Seconds, const char *pReason) |
| int | UnbanByAddr (const NETADDR *pAddr) |
| int | UnbanByRange (const CNetRange *pRange) |
| int | UnbanByIndex (int Index) |
| void | UnbanAll () |
| bool | IsBanned (const NETADDR *pOrigAddr, char *pBuf, unsigned BufferSize) const |
Static Public Member Functions | |
| static void | ConBan (class IConsole::IResult *pResult, void *pUser) |
| static void | ConBanRange (class IConsole::IResult *pResult, void *pUser) |
| static void | ConUnban (class IConsole::IResult *pResult, void *pUser) |
| static void | ConUnbanRange (class IConsole::IResult *pResult, void *pUser) |
| static void | ConUnbanAll (class IConsole::IResult *pResult, void *pUser) |
| static void | ConBans (class IConsole::IResult *pResult, void *pUser) |
| static void | ConBansFind (class IConsole::IResult *pResult, void *pUser) |
| static void | ConBansSave (class IConsole::IResult *pResult, void *pUser) |
Protected Types | |
| typedef CBanPool< NETADDR, 1 > | CBanAddrPool |
| typedef CBanPool< CNetRange, 16 > | CBanRangePool |
| typedef CBan< NETADDR > | CBanAddr |
| typedef CBan< CNetRange > | CBanRange |
Protected Member Functions | |
| bool | NetMatch (const NETADDR *pAddr1, const NETADDR *pAddr2) const |
| bool | NetMatch (const CNetRange *pRange, const NETADDR *pAddr, int Start, int Length) const |
| bool | NetMatch (const CNetRange *pRange, const NETADDR *pAddr) const |
| const char * | NetToString (const NETADDR *pData, char *pBuffer, unsigned BufferSize) const |
| const char * | NetToString (const CNetRange *pData, char *pBuffer, unsigned BufferSize) const |
| template<class T > | |
| void | MakeBanInfo (const CBan< T > *pBan, char *pBuf, unsigned BuffSize, int Type) const |
| template<class T > | |
| int | Ban (T *pBanPool, const typename T::CDataType *pData, int Seconds, const char *pReason, bool VerbatimReason) |
| template<class T > | |
| int | Unban (T *pBanPool, const typename T::CDataType *pData) |
Protected Attributes | |
| class IConsole * | m_pConsole |
| class IStorage * | m_pStorage |
| CBanAddrPool | m_BanAddrPool |
| CBanRangePool | m_BanRangePool |
| NETADDR | m_LocalhostIpV4 |
| NETADDR | m_LocalhostIpV6 |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtualdefault |
|
protected |
|
virtual |
Reimplemented in CServerBan.
Reimplemented in CServerBan.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
| void CNetBan::UnbanAll | ( | ) |
| void CNetBan::Update | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |