protected class STUNResolver.STUNService extends Object
Constructor and Description |
---|
STUNResolver.STUNService()
Default constructor, without name and port.
|
STUNResolver.STUNService(String hostname,
int port)
Basic constructor, with the hostname and port
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkBinding()
Check a binding with the STUN currentServer.
|
String |
getHostname()
Get the host name of the STUN service.
|
int |
getPort()
Get the port of the STUN service
|
boolean |
isNull()
Basic format test: the service is not null.
|
void |
setHostname(String hostname)
Set the hostname of the STUN service.
|
void |
setPort(int port)
Set the port number for the STUN service.
|
public STUNResolver.STUNService(String hostname, int port)
hostname
- The hostnameport
- The portpublic STUNResolver.STUNService()
public String getHostname()
public void setHostname(String hostname)
hostname
- The host name of the service.public int getPort()
public void setPort(int port)
port
- The port number.public boolean isNull()
public boolean checkBinding()