public interface Tunnel
Modifier and Type | Interface and Description |
---|---|
static class |
Tunnel.Mode |
Modifier and Type | Method and Description |
---|---|
void |
addServer(TunnelConfig tunnelConfig)
Add a tunnel server configuration.
|
void |
cleanServers()
Remove all tunnel server addresses previously entered with
addServer(org.linphone.core.TunnelConfig) |
boolean |
connected()
Check whether the tunnel is connected.
|
boolean |
dualModeEnabled()
Get the dual tunnel client mode.
|
void |
enableDualMode(boolean dualModeEnabled)
Sets whether or not to use the dual tunnel client mode.
|
void |
enableSip(boolean enable)
Set whether SIP packets must be directly sent to a UA or pass through the
tunnel.
|
boolean |
getActivated()
Returns whether the tunnel is activated.
|
Tunnel.Mode |
getMode()
Get the tunnel mode.
|
TunnelConfig[] |
getServers()
Get added servers.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
reconnect()
Force reconnection to the tunnel server.
|
void |
removeServer(TunnelConfig tunnelConfig)
Remove a tunnel server configuration.
|
void |
setHttpProxy(java.lang.String host,
int port,
java.lang.String username,
java.lang.String passwd)
Set an optional http proxy to go through when connecting to tunnel server.
|
void |
setHttpProxyAuthInfo(java.lang.String username,
java.lang.String passwd)
Set authentication info for the http proxy.
|
void |
setMode(Tunnel.Mode mode)
Set the tunnel mode.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
boolean |
sipEnabled()
Check whether tunnel is set to transport SIP packets.
|
boolean getActivated()
boolean dualModeEnabled()
void enableDualMode(boolean dualModeEnabled)
dualModeEnabled
- to enable it, true to disable itTunnel.Mode getMode()
void setMode(Tunnel.Mode mode)
mode
- The desired LinphoneTunnelModeTunnelConfig[] getServers()
TunnelConfig
objects. LinphoneTunnelConfigboolean sipEnabled()
void enableSip(boolean enable)
enable
- If true, SIP packets shall pass through the tunnelvoid addServer(TunnelConfig tunnelConfig)
tunnelConfig
- TunnelConfig
objectvoid cleanServers()
addServer(org.linphone.core.TunnelConfig)
boolean connected()
void reconnect()
void removeServer(TunnelConfig tunnelConfig)
tunnelConfig
- TunnelConfig
objectvoid setHttpProxy(java.lang.String host, int port, java.lang.String username, java.lang.String passwd)
passwd
- Optional http proxy password. Use null if not needed.void setHttpProxyAuthInfo(java.lang.String username, java.lang.String passwd)
passwd
- Passwordvoid setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()