TunnelConfig

public class TunnelConfig : LinphoneObject

Tunnel settings.

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> TunnelConfig
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Set the UDP packet round trip delay in ms for a tunnel configuration.

    Declaration

    Swift

    public var delay: Int { get set }

    Parameters

    delay

    The UDP packet round trip delay in ms considered as acceptable (recommended value is 1000 ms). Get the UDP packet round trip delay in ms for a tunnel configuration.

    Return Value

    The UDP packet round trip delay in ms.

  • Set the IP address or hostname of the tunnel server.

    Declaration

    Swift

    public var host: String { get set }

    Parameters

    host

    The tunnel server IP address or hostname.
    Get the IP address or hostname of the tunnel server.

    Return Value

    The tunnel server IP address or hostname.

  • Set the IP address or hostname of the second tunnel server when using dual tunnel client.

    Declaration

    Swift

    public var host2: String { get set }

    Parameters

    host

    The tunnel server IP address or hostname.
    Get the IP address or hostname of the second tunnel server when using dual tunnel client.

    Return Value

    The tunnel server IP address or hostname.

  • Set tls port of server.

    Declaration

    Swift

    public var port: Int { get set }

    Parameters

    port

    The tunnel server TLS port, recommended value is 443 Get the TLS port of the tunnel server.

    Return Value

    The TLS port of the tunnel server

  • Set tls port of the second server when using dual tunnel client.

    Declaration

    Swift

    public var port2: Int { get set }

    Parameters

    port

    The tunnel server TLS port, recommended value is 443 Get the TLS port of the second tunnel server when using dual tunnel client.

    Return Value

    The TLS port of the tunnel server

  • Set the remote port on the tunnel server side used to test UDP reachability. This is used when the mode is set auto, to detect whether the tunnel has to be enabled or not.

    Declaration

    Swift

    public var remoteUdpMirrorPort: Int { get set }

    Parameters

    remoteUdpMirrorPort

    The remote port on the tunnel server side used to test UDP reachability, set to -1 to disable the feature Get the remote port on the tunnel server side used to test UDP reachability. This is used when the mode is set auto, to detect whether the tunnel has to be enabled or not.

    Return Value

    The remote port on the tunnel server side used to test UDP reachability

  • Store a user data in the tunnel config object.

    Declaration

    Swift

    public var userData: UnsafeMutableRawPointer? { get set }

    Parameters

    userData

    the user data.
    Retrieve user data from the tunnel config.

    Return Value

    the user data.