com.limegroup.gnutella.filters
Class DuplicateFilter

java.lang.Object
  extended bycom.limegroup.gnutella.filters.SpamFilter
      extended bycom.limegroup.gnutella.filters.DuplicateFilter

public class DuplicateFilter
extends SpamFilter

A spam filter that tries to eliminate duplicate packets from overzealous users. Since requests are not traceable, we have to use the following heuristics:

It would also be possible to special-case hops counts of zero.


Constructor Summary
DuplicateFilter()
           
 
Method Summary
 boolean allow(Message m)
          Returns true iff this is considered spam and should not be processed.
 boolean allowGUID(Message m)
           
 boolean allowQuery(QueryRequest qr)
           
 
Methods inherited from class com.limegroup.gnutella.filters.SpamFilter
newPersonalFilter, newRouteFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateFilter

public DuplicateFilter()
Method Detail

allow

public boolean allow(Message m)
Description copied from class: SpamFilter
Returns true iff this is considered spam and should not be processed.

Specified by:
allow in class SpamFilter

allowGUID

public boolean allowGUID(Message m)

allowQuery

public boolean allowQuery(QueryRequest qr)