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
linphone_tunnel_add_server()
|
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)
Tunnel.Mode getMode()
void setMode(Tunnel.Mode mode)
TunnelConfig[] getServers()
boolean sipEnabled()
void enableSip(boolean enable)
void addServer(TunnelConfig tunnelConfig)
void cleanServers()
boolean connected()
void reconnect()
void removeServer(TunnelConfig tunnelConfig)
void setHttpProxy(java.lang.String host, int port, java.lang.String username, java.lang.String passwd)
void setHttpProxyAuthInfo(java.lang.String username, java.lang.String passwd)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()