[#BanMan-Ban-0a] = xref:BanMan.adoc[BanMan]::Ban :relfileprefix: ../ :mrdocs: `Ban` overloads == Synopses Declared in `<banman.h>` Bans an address, rejecting all connections with it. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e3ae94688)]] void xref:BanMan/Ban-04.adoc[Ban]( xref:CNetAddr.adoc[CNetAddr] const& net_addr, int64_t ban_time_offset = 0, bool since_unix_epoch = false); ---- [.small]#xref:BanMan/Ban-04.adoc[_» more..._]# Bans a subnet, rejecting all connections within its range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e3ae947c8)]] void xref:BanMan/Ban-0d.adoc[Ban]( xref:CSubNet.adoc[CSubNet] const& sub_net, int64_t ban_time_offset = 0, bool since_unix_epoch = false); ---- [.small]#xref:BanMan/Ban-0d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *net_addr* | The address to ban. | *ban_time_offset* | Ban duration offset in seconds; 0 uses the default. | *since_unix_epoch* | If true, ban_time_offset is an absolute unix timestamp. | *sub_net* | The subnet to ban. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#