#include <banman.h>
Definition at line 57 of file banman.h.
| BanMan::BanMan |
( |
fs::path |
ban_file, |
|
|
CClientUIInterface * |
client_interface, |
|
|
int64_t |
default_ban_time |
|
) |
| |
| void BanMan::Ban |
( |
const CNetAddr & |
net_addr, |
|
|
int64_t |
ban_time_offset = 0, |
|
|
bool |
since_unix_epoch = false |
|
) |
| |
| void BanMan::Ban |
( |
const CSubNet & |
sub_net, |
|
|
int64_t |
ban_time_offset = 0, |
|
|
bool |
since_unix_epoch = false |
|
) |
| |
| bool BanMan::BannedSetIsDirty |
( |
| ) |
|
|
private |
| void BanMan::ClearBanned |
( |
| ) |
|
| void BanMan::Discourage |
( |
const CNetAddr & |
net_addr | ) |
|
| void BanMan::DumpBanlist |
( |
| ) |
|
| void BanMan::GetBanned |
( |
banmap_t & |
banmap | ) |
|
| bool BanMan::IsBanned |
( |
const CNetAddr & |
net_addr | ) |
|
Return whether net_addr is banned.
Definition at line 77 of file banman.cpp.
| bool BanMan::IsBanned |
( |
const CSubNet & |
sub_net | ) |
|
Return whether sub_net is exactly banned.
Definition at line 92 of file banman.cpp.
| bool BanMan::IsDiscouraged |
( |
const CNetAddr & |
net_addr | ) |
|
Return whether net_addr is discouraged.
Definition at line 71 of file banman.cpp.
| void BanMan::SetBanned |
( |
const banmap_t & |
banmap | ) |
|
|
private |
| void BanMan::SetBannedSetDirty |
( |
bool |
dirty = true | ) |
|
|
private |
set the "dirty" flag for the banlist
Definition at line 208 of file banman.cpp.
| void BanMan::SweepBanned |
( |
| ) |
|
|
private |
clean unused entries (if bantime has expired)
Definition at line 177 of file banman.cpp.
| bool BanMan::Unban |
( |
const CNetAddr & |
net_addr | ) |
|
| bool BanMan::Unban |
( |
const CSubNet & |
sub_net | ) |
|
| const int64_t BanMan::m_default_ban_time |
|
private |
The documentation for this class was generated from the following files: