final class RemoteHostId extends Object
| Constructor and Description |
|---|
RemoteHostId(byte[] ip,
int port)Direct (IP + port). |
RemoteHostId(Hash peerHash)Indirect (hash only). |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj) |
byte[] | getIP()The IP address, or null if indirect. |
Hash | getPeerHash()The peer hash, or null if direct. |
int | getPort()The port, or 0 if indirect. |
int | hashCode() |
String | toString() |
public RemoteHostId(byte[] ip,
int port)public RemoteHostId(Hash peerHash)
public byte[] getIP()
public Hash getPeerHash()
public int getPort()