#include <server.h>
|
| class CServer * | Server () const |
| |
| void | InitServerBan (class IConsole *pConsole, class IStorage *pStorage, class CServer *pServer) |
| |
| int | BanAddr (const NETADDR *pAddr, int Seconds, const char *pReason, bool VerbatimReason) override |
| |
| int | BanRange (const CNetRange *pRange, int Seconds, const char *pReason) override |
| |
| class IConsole * | Console () const |
| |
| class IStorage * | Storage () const |
| |
| virtual | ~CNetBan ()=default |
| |
| void | Init (class IConsole *pConsole, class IStorage *pStorage) |
| |
| void | Update () |
| |
| 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 void | ConBanExt (class IConsole::IResult *pResult, void *pUser) |
| |
| static void | ConBanRegion (class IConsole::IResult *pResult, void *pUser) |
| |
| static void | ConBanRegionRange (class IConsole::IResult *pResult, void *pUser) |
| |
| 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) |
| |
|
| enum | { MSGTYPE_PLAYER = 0
, MSGTYPE_LIST
, MSGTYPE_BANADD
, MSGTYPE_BANREM
} |
| |
| typedef CBanPool< NETADDR, 1 > | CBanAddrPool |
| |
| typedef CBanPool< CNetRange, 16 > | CBanRangePool |
| |
| typedef CBan< NETADDR > | CBanAddr |
| |
| typedef CBan< CNetRange > | CBanRange |
| |
| 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) |
| |
| class IConsole * | m_pConsole |
| |
| class IStorage * | m_pStorage |
| |
| CBanAddrPool | m_BanAddrPool |
| |
| CBanRangePool | m_BanRangePool |
| |
| NETADDR | m_LocalhostIpV4 |
| |
| NETADDR | m_LocalhostIpV6 |
| |
◆ BanAddr()
◆ BanExt()
◆ BanRange()
◆ ConBanExt()
◆ ConBanRegion()
◆ ConBanRegionRange()
◆ InitServerBan()
◆ Server()
◆ m_pServer
The documentation for this class was generated from the following files: