NatPolicy
public class NatPolicy : LinphoneObject
Policy to use to pass through NATs/firewalls.
-
Undocumented
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> NatPolicy
-
Undocumented
Declaration
Swift
public var getCobject: OpaquePointer? { get }
-
Tell whether ICE is enabled.
Declaration
Swift
public var iceEnabled: Bool { get set }
Return Value
Boolean value telling whether ICE is enabled.
-
Tell whether STUN is enabled.
Declaration
Swift
public var stunEnabled: Bool { get set }
Return Value
Boolean value telling whether STUN is enabled.
-
Get the STUN/TURN server to use with this NAT policy. Used when STUN or TURN are enabled.
Declaration
Swift
public var stunServer: String { get set }
Return Value
The STUN server used by this NAT policy.
-
Get the username used to authenticate with the STUN/TURN server. The authentication will search for a
AuthInfo
with this username. If it is not set the username of the currently usedProxyConfig
is used to search for a LinphoneAuthInfo.Declaration
Swift
public var stunServerUsername: String { get set }
Return Value
The username used to authenticate with the STUN/TURN server.
-
Tells whether TCP TURN transport is enabled. Used when TURN is enabled.
Declaration
Swift
public var tcpTurnTransportEnabled: Bool { get set }
Return Value
Boolean value telling whether TCP TURN transport is enabled.
-
Tells whether TLS TURN transport is enabled. Used when TURN is enabled.
Declaration
Swift
public var tlsTurnTransportEnabled: Bool { get set }
Return Value
Boolean value telling whether TLS TURN transport is enabled.
-
Tell whether TURN is enabled.
Declaration
Swift
public var turnEnabled: Bool { get set }
Return Value
Boolean value telling whether TURN is enabled.
-
Tells whether UDP TURN transport is enabled. Used when TURN is enabled.
Declaration
Swift
public var udpTurnTransportEnabled: Bool { get set }
Return Value
Boolean value telling whether UDP TURN transport is enabled.
-
Tell whether uPnP is enabled.
Declaration
Swift
public var upnpEnabled: Bool { get set }
Return Value
Boolean value telling whether uPnP is enabled.
-
Retrieve the user pointer associated with the
NatPolicy
object.Declaration
Swift
public var userData: UnsafeMutableRawPointer? { get set }
Return Value
The user pointer associated with the
NatPolicy
object. -
Clear a NAT policy (deactivate all protocols and unset the STUN server).
Declaration
Swift
public func clear()
-
Clone a
NatPolicy
object.Declaration
Swift
public func clone() -> NatPolicy?
Return Value
a new
NatPolicy
object. -
Start a STUN server DNS resolution.
Declaration
Swift
public func resolveStunServer()