Liblinphone
5.3.0
|
The XmlRpcSession object used to send XML-RPC requests and handle their responses. More...
#include <xml_rpc_session.hh>
Public Member Functions | |
LINPHONECXX_PUBLIC | XmlRpcSession (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneXmlRpcSession * | cPtr () |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::XmlRpcRequest > | createRequest (linphone::XmlRpcArgType returnType, const std::string &method) |
Creates a XmlRpcRequest from a XmlRpcSession. More... | |
LINPHONECXX_PUBLIC void | release () |
Stop and unref an XML rpc session. More... | |
LINPHONECXX_PUBLIC void | sendRequest (const std::shared_ptr< linphone::XmlRpcRequest > &request) |
Send an XML-RPC request. More... | |
The XmlRpcSession object used to send XML-RPC requests and handle their responses.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::XmlRpcRequest> linphone::XmlRpcSession::createRequest | ( | linphone::XmlRpcArgType | returnType, |
const std::string & | method | ||
) |
Creates a XmlRpcRequest from a XmlRpcSession.
returnType | the return type of the request as a XmlRpcArgType |
method | the function name to call |
LINPHONECXX_PUBLIC void linphone::XmlRpcSession::release | ( | ) |
Stop and unref an XML rpc session.
Pending requests will be aborted.
LINPHONECXX_PUBLIC void linphone::XmlRpcSession::sendRequest | ( | const std::shared_ptr< linphone::XmlRpcRequest > & | request | ) |
Send an XML-RPC request.
request | The XmlRpcRequest to be sent. |