class UDPAddress extends Object
| Modifier and Type | Field and Description |
|---|---|
static char | CAPACITY_INTRODUCER'C' |
static char | CAPACITY_TESTING'B' |
(package private) static int | MAX_INTRODUCERSMaximum number of introducers per address. |
static String | PROP_CAPACITYProperty key for capabilities. |
static String | PROP_HOSTConfig key for SSU host. |
static String | PROP_INTRO_EXP_PREFIXIntroduction expiration prefix |
static String | PROP_INTRO_HASH_PREFIXIntroduction hash prefix for SSU2 |
static String | PROP_INTRO_HOST_PREFIXIntroducer host. |
static String | PROP_INTRO_KEYIntroduction key. |
static String | PROP_INTRO_KEY_PREFIXIntroducer key. |
static String | PROP_INTRO_PORT_PREFIXIntroducer port. |
(package private) static String[] | PROP_INTRO_TAGIntroducer tag property names indexed by position. |
static String | PROP_INTRO_TAG_PREFIXIntroducer tag. |
static String | PROP_MTUProperty key for MTU. |
static String | PROP_PORTConfig key for SSU port. |
| Constructor and Description |
|---|
UDPAddress(RouterAddress addr)Parse and cache router address data. |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void | clearCache()Clear cache. |
String | getHost()Host string from the router address. |
(package private) InetAddress | getHostAddress()As of 0.9.32, will NOT resolve hostnames. |
(package private) int | getIntroducerCount()Introducer count |
(package private) long | getIntroducerExpiration(int i)Expiration for the given introducer. |
(package private) Hash | getIntroducerHash(int i)Introducer hash for the given introducer. |
(package private) InetAddress | getIntroducerHost(int i)As of 0.9.32, will NOT resolve hostnames. |
(package private) byte[] | getIntroducerKey(int i)Introducer key for the given introducer. |
(package private) int | getIntroducerPort(int i)Port number for the given introducer. |
(package private) long | getIntroducerTag(int i)Introducer tag for the given introducer. |
(package private) byte[] | getIntroKey() |
(package private) int | getMTU() |
int | getPort()Port number from the router address. |
(package private) boolean | isIPv4() |
(package private) boolean | isIPv6() |
String | toString()String representation. |
public static final char CAPACITY_INTRODUCER
public static final char CAPACITY_TESTING
static final int MAX_INTRODUCERS
public static final String PROP_CAPACITY
public static final String PROP_HOST
public static final String PROP_INTRO_EXP_PREFIX
public static final String PROP_INTRO_HASH_PREFIX
public static final String PROP_INTRO_HOST_PREFIX
public static final String PROP_INTRO_KEY
public static final String PROP_INTRO_KEY_PREFIX
public static final String PROP_INTRO_PORT_PREFIX
static final String[] PROP_INTRO_TAG
public static final String PROP_INTRO_TAG_PREFIX
public static final String PROP_MTU
public static final String PROP_PORT
public UDPAddress(RouterAddress addr)
static void clearCache()
public String getHost()
InetAddress getHostAddress()
int getIntroducerCount()
long getIntroducerExpiration(int i)
Hash getIntroducerHash(int i)
InetAddress getIntroducerHost(int i)
byte[] getIntroducerKey(int i)
int getIntroducerPort(int i)
long getIntroducerTag(int i)
byte[] getIntroKey()
int getMTU()
public int getPort()
boolean isIPv4()
boolean isIPv6()