XmlRpcSession
public class XmlRpcSession : LinphoneObject
The XmlRpcSession object used to send XML-RPC requests and handle their/// responses.
-
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> XmlRpcSession -
Declaration
Swift
public var getCobject: OpaquePointer? { get } -
Assign a user pointer to the XML-RPC session.
Retrieve the user pointer associated with the XML-RPC session.
Declaration
Swift
public var userData: UnsafeMutableRawPointer? { get set }Return Value
The user pointer associated with the XML-RPC session.
-
Creates a
XmlRpcRequestfrom aXmlRpcSession.Declaration
Swift
public func createRequest(returnType: XmlRpcArgType, method: String) throws -> XmlRpcRequestParameters
returnTypethe return type of the request as a
XmlRpcArgTypemethodthe function name to call
Return Value
a
XmlRpcRequestobject -
Stop and unref an XML rpc session. Pending requests will be aborted.
Declaration
Swift
public func release() -
Send an XML-RPC request.
Declaration
Swift
public func sendRequest(request: XmlRpcRequest)Parameters
requestThe
XmlRpcRequestto be sent.
XmlRpcSession Class Reference