A class to send XML RPC requests to a server and return the results.
More...
#include <XmlRpcClient.h>
A class to send XML RPC requests to a server and return the results.
Definition at line 26 of file XmlRpcClient.h.
◆ ClientConnectionState
Enumerator |
---|
NO_CONNECTION | |
CONNECTING | |
WRITE_REQUEST | |
READ_HEADER | |
READ_RESPONSE | |
IDLE | |
Definition at line 90 of file XmlRpcClient.h.
◆ XmlRpcClient()
XmlRpcClient::XmlRpcClient |
( |
const char * |
host, |
|
|
int |
port, |
|
|
const char * |
uri = 0 |
|
) |
| |
Construct a client to connect to the server at the specified host:port address
- Parameters
-
host | The name of the remote machine hosting the server |
port | The port on the remote machine where the server is listening |
uri | An optional string to be sent as the URI in the HTTP GET header |
Definition at line 52 of file XmlRpcClient.cpp.
◆ ~XmlRpcClient()
XmlRpcClient::~XmlRpcClient |
( |
| ) |
|
|
virtual |
◆ close()
void XmlRpcClient::close |
( |
| ) |
|
|
virtual |
◆ connectionStateStr()
◆ doConnect()
bool XmlRpcClient::doConnect |
( |
| ) |
|
|
protectedvirtual |
◆ execute()
Execute the named procedure on the remote server.
- Parameters
-
method | The name of the remote procedure to execute |
params | An array of the arguments for the method |
result | The result value to be returned to the client |
- Returns
- true if the request was sent and a result received (although the result might be a fault).
Currently this is a synchronous (blocking) implementation (execute does not return until it receives a response or an error). Use isFault() to determine whether the result is a fault response.
Definition at line 104 of file XmlRpcClient.cpp.
◆ executeCheckDone()
bool XmlRpcClient::executeCheckDone |
( |
XmlRpcValue & |
result | ) |
|
◆ executeNonBlock()
bool XmlRpcClient::executeNonBlock |
( |
const char * |
method, |
|
|
XmlRpcValue const & |
params |
|
) |
| |
◆ generateHeader()
std::string XmlRpcClient::generateHeader |
( |
size_t |
length | ) |
const |
|
protectedvirtual |
◆ generateRequest()
bool XmlRpcClient::generateRequest |
( |
const char * |
method, |
|
|
XmlRpcValue const & |
params |
|
) |
| |
|
protectedvirtual |
◆ getHost()
const std::string& XmlRpc::XmlRpcClient::getHost |
( |
| ) |
|
|
inline |
◆ getPort()
int XmlRpc::XmlRpcClient::getPort |
( |
| ) |
const |
|
inline |
◆ getUri()
const std::string& XmlRpc::XmlRpcClient::getUri |
( |
| ) |
|
|
inline |
◆ handleEvent()
unsigned XmlRpcClient::handleEvent |
( |
unsigned |
eventType | ) |
|
|
virtual |
◆ isFault()
bool XmlRpc::XmlRpcClient::isFault |
( |
| ) |
const |
|
inline |
◆ parseResponse()
bool XmlRpcClient::parseResponse |
( |
XmlRpcValue & |
result | ) |
|
|
protectedvirtual |
◆ readHeader()
bool XmlRpcClient::readHeader |
( |
| ) |
|
|
protectedvirtual |
◆ readResponse()
bool XmlRpcClient::readResponse |
( |
| ) |
|
|
protectedvirtual |
◆ setupConnection()
bool XmlRpcClient::setupConnection |
( |
| ) |
|
|
protectedvirtual |
◆ writeRequest()
bool XmlRpcClient::writeRequest |
( |
| ) |
|
|
protectedvirtual |
◆ _bytesWritten
int XmlRpc::XmlRpcClient::_bytesWritten |
◆ _connectionState
◆ _contentLength
int XmlRpc::XmlRpcClient::_contentLength |
◆ _disp
◆ _eof
bool XmlRpc::XmlRpcClient::_eof |
◆ _executing
bool XmlRpc::XmlRpcClient::_executing |
◆ _header
std::string XmlRpc::XmlRpcClient::_header |
◆ _host
std::string XmlRpc::XmlRpcClient::_host |
|
protected |
◆ _isFault
bool XmlRpc::XmlRpcClient::_isFault |
◆ _port
int XmlRpc::XmlRpcClient::_port |
|
protected |
◆ _request
std::string XmlRpc::XmlRpcClient::_request |
◆ _response
std::string XmlRpc::XmlRpcClient::_response |
◆ _sendAttempts
int XmlRpc::XmlRpcClient::_sendAttempts |
◆ _uri
std::string XmlRpc::XmlRpcClient::_uri |
|
protected |
◆ FAULT_TAG
const char XmlRpcClient::FAULT_TAG = "<fault>" |
|
static |
◆ METHODRESPONSE_TAG
const char XmlRpcClient::METHODRESPONSE_TAG = "<methodResponse>" |
|
static |
◆ PARAM_ETAG
const char XmlRpcClient::PARAM_ETAG = "</param>" |
|
static |
◆ PARAM_TAG
const char XmlRpcClient::PARAM_TAG = "<param>" |
|
static |
◆ PARAMS_ETAG
const char XmlRpcClient::PARAMS_ETAG = "</params>" |
|
static |
◆ PARAMS_TAG
const char XmlRpcClient::PARAMS_TAG = "<params>" |
|
static |
◆ REQUEST_BEGIN
const char XmlRpcClient::REQUEST_BEGIN |
|
static |
Initial value:=
"<?xml version=\"1.0\"?>\r\n"
"<methodCall><methodName>"
Definition at line 29 of file XmlRpcClient.h.
◆ REQUEST_END
const char XmlRpcClient::REQUEST_END = "</methodCall>\r\n" |
|
static |
◆ REQUEST_END_METHODNAME
const char XmlRpcClient::REQUEST_END_METHODNAME = "</methodName>\r\n" |
|
static |
The documentation for this class was generated from the following files:
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:22