|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.peermanager.utils.PeerClassifier
public class PeerClassifier
Handles peer client identification and banning.
Field Summary | |
---|---|
static String |
CACHE_LOGIC
|
Constructor Summary | |
---|---|
PeerClassifier()
|
Method Summary | |
---|---|
static boolean |
fullySupportsFE(String client_description)
|
static String |
getClientDescription(byte[] peer_id)
Get a client description (name and version) from the given peerID byte array. |
static String |
getPrintablePeerID(byte[] peer_id)
Get a printable representation of the given raw peerID byte array, i.e. |
static boolean |
isAzureusIP(String ip)
This only works for ones that have been explicitly set as AZ ips |
static boolean |
isClientTypeAllowed(String client_description)
Check if the client type is allowed to connect. |
static void |
setAzureusIP(String ip)
|
static boolean |
testIfAzureusIP(String ip)
SYNC call! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CACHE_LOGIC
Constructor Detail |
---|
public PeerClassifier()
Method Detail |
---|
public static String getClientDescription(byte[] peer_id)
peer_id
- peerID sent in handshake
public static String getPrintablePeerID(byte[] peer_id)
peer_id
- peerID sent in handshake
public static boolean isClientTypeAllowed(String client_description)
client_description
- given by getClientDescription
public static boolean fullySupportsFE(String client_description)
public static boolean isAzureusIP(String ip)
ip
-
public static void setAzureusIP(String ip)
public static boolean testIfAzureusIP(String ip)
ip
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |