public class TransportAddress extends InetSocketAddress
| Modifier and Type | Class and Description |
|---|---|
static class |
TransportAddress.TransportProtocol |
| Modifier and Type | Field and Description |
|---|---|
protected TransportAddress.TransportProtocol |
protocol |
protected boolean |
virtual |
| Constructor and Description |
|---|
TransportAddress(InetAddress addr,
int port,
TransportAddress.TransportProtocol protocol) |
TransportAddress(String hostname,
int port,
TransportAddress.TransportProtocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAddressBytes() |
TransportAddress.TransportProtocol |
getProtocol()
Gets the protocol to be used for transportation means.
|
boolean |
isIPv4()
Verifies whether the address bound to this candidate is IPv4.
|
boolean |
isIPv6()
Verifies whether the address bound to this candidate is IPv6.
|
boolean |
isVirtual() |
void |
setVirtual(boolean virtual) |
createUnresolved, equals, getAddress, getHostName, getHostString, getPort, hashCode, isUnresolved, toStringprotected TransportAddress.TransportProtocol protocol
protected boolean virtual
public TransportAddress(InetAddress addr, int port, TransportAddress.TransportProtocol protocol)
public TransportAddress(String hostname, int port, TransportAddress.TransportProtocol protocol)
public boolean isIPv6()
public boolean isIPv4()
public TransportAddress.TransportProtocol getProtocol()
public boolean isVirtual()
public void setVirtual(boolean virtual)
public byte[] getAddressBytes()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.