Transports

public class Transports : LinphoneObject

SIP transports & ports configuration object. Indicates which transport among UDP, TCP, TLS and DTLS should be enabled and if so on which port to listen. You can use special values like LC_SIP_TRANSPORT_DISABLED (0), LC_SIP_TRANSPORT_RANDOM (-1) and LC_SIP_TRANSPORT_DONTBIND (-2). Once configuration is complete, use Core.setTransports() to apply it. This will be saved in configuration file so you don’t have to do it each time the Core starts.

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Sets the DTLS port in the Transports object.

    Declaration

    Swift

    public var dtlsPort: Int { get set }

    Parameters

    port

    the DTLS port Gets the DTLS port in the Transports object.

    Return Value

    the DTLS port

  • Sets the TCP port in the Transports object.

    Declaration

    Swift

    public var tcpPort: Int { get set }

    Parameters

    port

    the TCP port Gets the TCP port in the Transports object.

    Return Value

    the TCP port

  • Sets the TLS port in the Transports object.

    Declaration

    Swift

    public var tlsPort: Int { get set }

    Parameters

    port

    the TLS port Gets the TLS port in the Transports object.

    Return Value

    the TLS port

  • Sets the UDP port in the Transports object.

    Declaration

    Swift

    public var udpPort: Int { get set }

    Parameters

    port

    the UDP port Gets the UDP port in the Transports object.

    Return Value

    the UDP port

  • Sets the user data in the Transports object.

    Declaration

    Swift

    public var userData: UnsafeMutableRawPointer? { get set }

    Parameters

    userData

    the user data
    Gets the user data in the Transports object.

    Return Value

    the user data.