XmlRpcSession

public class XmlRpcSession : LinphoneObject

The XmlRpcSession object used to send XML-RPC requests and handle their/// responses.

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Assign a user pointer to the XML-RPC session.

    Declaration

    Swift

    public var userData: UnsafeMutableRawPointer? { get set }

    Parameters

    userData

    The user pointer to associate with the XML-RPC session.
    Retrieve the user pointer associated with the XML-RPC session.

    Return Value

    The user pointer associated with the XML-RPC session.

  • Creates a XmlRpcRequest from a XmlRpcSession.

    Declaration

    Swift

    public func createRequest(returnType: XmlRpcArgType, method: String) throws -> XmlRpcRequest

    Parameters

    returnType

    the return type of the request as a XmlRpcArgType

    method

    the function name to call

    Return Value

    a XmlRpcRequest object

  • 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

    request

    The XmlRpcRequest to be sent.