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 }
-
Gets the DTLS port in the
Transports
object.Declaration
Swift
public var dtlsPort: Int { get set }
Return Value
the DTLS port
-
Gets the TCP port in the
Transports
object.Declaration
Swift
public var tcpPort: Int { get set }
Return Value
the TCP port
-
Gets the TLS port in the
Transports
object.Declaration
Swift
public var tlsPort: Int { get set }
Return Value
the TLS port
-
Gets the UDP port in the
Transports
object.Declaration
Swift
public var udpPort: Int { get set }
Return Value
the UDP port
-
Gets the user data in the
Transports
object.Declaration
Swift
public var userData: UnsafeMutableRawPointer? { get set }
Return Value
the user data.