public class I2PSocketAddress extends SocketAddress
| Constructor and Description |
|---|
I2PSocketAddress(Destination dest,
int port)
Does not do a reverse lookup.
|
I2PSocketAddress(String host)
Convenience constructor that parses host:port.
|
I2PSocketAddress(String host,
int port)
Does a naming service lookup to resolve the dest.
|
| Modifier and Type | Method and Description |
|---|---|
static I2PSocketAddress |
createUnresolved(String host,
int port) |
boolean |
equals(Object obj) |
Destination |
getAddress()
Does a naming service lookup to resolve the dest if this was created unresolved
or if the resolution failed in the constructor.
|
String |
getHostName() |
int |
getPort() |
int |
hashCode() |
boolean |
isUnresolved() |
String |
toString() |
public I2PSocketAddress(Destination dest, int port)
IllegalArgumentException - for port < 0 or port > 65535public I2PSocketAddress(String host)
host - hostname or b64 dest or b32, may have :port appendedIllegalArgumentException - for port < 0 or port > 65535 or invalid portpublic I2PSocketAddress(String host, int port)
IllegalArgumentException - for port < 0 or port > 65535public static I2PSocketAddress createUnresolved(String host, int port)
IllegalArgumentException - for port < 0 or port > 65535public Destination getAddress()
public String getHostName()
public int getPort()
public boolean isUnresolved()