Methods Summary |
---|
public static java.lang.String | getClientDescription(byte[] peer_id)Get a client description (name and version) from the given peerID byte array.
return BTPeerIDByteDecoder.decode( peer_id );
|
public static java.lang.String | getPrintablePeerID(byte[] peer_id)Get a printable representation of the given raw peerID byte array,
i.e. filter out the first 32 non-printing ascii chars.
return BTPeerIDByteDecoder.getPrintablePeerID(peer_id);
|
public static boolean | isClientTypeAllowed(java.lang.String client_description)Check if the client type is allowed to connect.
//if( client_description.startsWith( "BitComet" ) ) return false;
return true;
|