Package com.biglybt.core.ipfilter.impl
Class IPBannerImpl
java.lang.Object
com.biglybt.core.ipfilter.impl.IPBannerImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private final Map
<String, BannedIpImpl> private final Map
<Integer, BannedIpImpl> private final Map
<InetAddress, BannedIpImpl> (package private) static final AEMonitor
private final IpFilterImpl
(package private) TimerEventPeriodic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addTemporaryBan
(BannedIpImpl ban, int mins) boolean
void
private Object
decodeAddress
(String address) private Object
decodeAddress
(InetAddress address) BannedIp[]
int
protected boolean
protected boolean
isBanned
(InetAddress ipAddress, byte[] specific_hash) protected void
protected void
boolean
boolean
-
Field Details
-
BAN_IP_PERSIST_TIME
private static final long BAN_IP_PERSIST_TIME- See Also:
-
class_mon
-
ipFilter
-
bannedIps_v4
-
bannedIps_v6
-
bannedIps_other
-
unban_timer
TimerEventPeriodic unban_timer -
unban_map
-
unban_map_reverse
-
-
Constructor Details
-
IPBannerImpl
-
-
Method Details
-
loadBannedIPs
protected void loadBannedIPs() -
saveBannedIPs
protected void saveBannedIPs() -
isBanned
-
isBanned
-
ban
-
addTemporaryBan
-
getBannedIps
-
getNbBannedIps
public int getNbBannedIps() -
clearBannedIps
public void clearBannedIps() -
unban
-
unban
-
decodeAddress
-
decodeAddress
-