|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.networkdb.kademlia.LookupThrottler
class LookupThrottler
Count how often we have recently received a lookup request with the reply specified to go to a peer/TunnelId pair. This offers basic DOS protection but is not a complete solution. The reply peer/tunnel could be spoofed, for example. And a requestor could have up to 6 reply tunnels.
Constructor Summary | |
---|---|
LookupThrottler()
|
Method Summary | |
---|---|
(package private) boolean |
shouldThrottle(Hash key,
TunnelId id)
increments before checking |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
LookupThrottler()
Method Detail |
---|
boolean shouldThrottle(Hash key, TunnelId id)
key
- non-nullid
- null if for direct lookups
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |