com.aelitis.azureus.core.peermanager.utils
Class BTPeerIDByteDecoder

java.lang.Object
  extended by com.aelitis.azureus.core.peermanager.utils.BTPeerIDByteDecoder

public class BTPeerIDByteDecoder
extends Object

Used for identifying clients by their peerID.


Constructor Summary
BTPeerIDByteDecoder()
           
 
Method Summary
static String decode(byte[] peer_id)
          Decodes the given peerID, returning an identification string.
static String decode0(byte[] peer_id_bytes)
           
protected static String getPrintablePeerID(byte[] peer_id)
           
protected static String getPrintablePeerID(byte[] peer_id, char fallback_char)
           
static String identifyAwkwardClient(byte[] peer_id)
           
static void logClientDiscrepancy(String peer_id_name, String handshake_name, String discrepancy, String protocol, byte[] peer_id)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTPeerIDByteDecoder

public BTPeerIDByteDecoder()
Method Detail

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