public interface TunnelConfig
Modifier and Type | Method and Description |
---|---|
int |
getDelay()
Get the UDP packet round trip delay in ms for a tunnel configuration.
|
java.lang.String |
getHost()
Get the IP address or hostname of the tunnel server.
|
java.lang.String |
getHost2()
Get the IP address or hostname of the second tunnel server when using dual
tunnel client. |
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
int |
getPort()
Get the TLS port of the tunnel server.
|
int |
getPort2()
Get the TLS port of the second tunnel server when using dual tunnel client.
|
int |
getRemoteUdpMirrorPort()
Get the remote port on the tunnel server side used to test UDP reachability.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
setDelay(int delay)
Set the UDP packet round trip delay in ms for a tunnel configuration.
|
void |
setHost(java.lang.String host)
Set the IP address or hostname of the tunnel server.
|
void |
setHost2(java.lang.String host)
Set the IP address or hostname of the second tunnel server when using dual
tunnel client. |
void |
setPort(int port)
Set tls port of server.
|
void |
setPort2(int port)
Set tls port of the second server when using dual tunnel client.
|
void |
setRemoteUdpMirrorPort(int remoteUdpMirrorPort)
Set the remote port on the tunnel server side used to test UDP reachability.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
int getDelay()
void setDelay(int delay)
delay
- The UDP packet round trip delay in ms considered as acceptable@Nullable java.lang.String getHost()
void setHost(@Nullable java.lang.String host)
host
- The tunnel server IP address or hostname. @Nullable java.lang.String getHost2()
void setHost2(@Nullable java.lang.String host)
host
- The tunnel server IP address or hostname. int getPort()
void setPort(int port)
port
- The tunnel server TLS port, recommended value is 443 int getPort2()
void setPort2(int port)
port
- The tunnel server TLS port, recommended value is 443 int getRemoteUdpMirrorPort()
void setRemoteUdpMirrorPort(int remoteUdpMirrorPort)
remoteUdpMirrorPort
- The remote port on the tunnel server side used tovoid setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object