TunnelConfig

public class TunnelConfig : LinphoneObject

Tunnel settings.

  • Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> TunnelConfig
  • 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 }

    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 }

    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 }

    Return Value

    The tunnel server IP address or hostname.

  • Set tls port of server.

    Declaration

    Swift

    public var port: Int { get set }

    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 }

    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 }

    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 }

    Return Value

    the user data.