final class RemoteHostId extends Object
| Constructor and Description |
|---|
RemoteHostId(byte[] ip,
int port)direct |
RemoteHostId(Hash peerHash)indirect |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj) |
byte[] | getIP()Get the IP address, or null if indirect |
Hash | getPeerHash()Get the peer hash, or null if direct |
int | getPort()Get 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()