com.aelitis.azureus.core.peermanager.utils
Class BTPeerIDByteDecoder
java.lang.Object
com.aelitis.azureus.core.peermanager.utils.BTPeerIDByteDecoder
public class BTPeerIDByteDecoder
- extends Object
Used for identifying clients by their peerID.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BTPeerIDByteDecoder
public BTPeerIDByteDecoder()
logClientDiscrepancy
public static void logClientDiscrepancy(String peer_id_name,
String handshake_name,
String discrepancy,
String protocol,
byte[] peer_id)
decode0
public static String decode0(byte[] peer_id_bytes)
decode
public static String decode(byte[] peer_id)
- Decodes the given peerID, returning an identification string.
identifyAwkwardClient
public static String identifyAwkwardClient(byte[] peer_id)
getPrintablePeerID
protected static String getPrintablePeerID(byte[] peer_id)
getPrintablePeerID
protected static String getPrintablePeerID(byte[] peer_id,
char fallback_char)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception