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.
Enumerator |
---|
NO_CONNECTION |
|
CONNECTING |
|
WRITE_REQUEST |
|
READ_HEADER |
|
READ_RESPONSE |
|
IDLE |
|
Definition at line 90 of file XmlRpcClient.h.
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 32 of file XmlRpcClient.cpp.
XmlRpcClient::~XmlRpcClient |
( |
| ) |
|
|
virtual |
void XmlRpcClient::close |
( |
| ) |
|
|
virtual |
bool XmlRpcClient::doConnect |
( |
| ) |
|
|
protectedvirtual |
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 80 of file XmlRpcClient.cpp.
bool XmlRpcClient::executeCheckDone |
( |
XmlRpcValue & |
result | ) |
|
bool XmlRpcClient::executeNonBlock |
( |
const char * |
method, |
|
|
XmlRpcValue const & |
params |
|
) |
| |
std::string XmlRpcClient::generateHeader |
( |
std::string const & |
body | ) |
|
|
protectedvirtual |
bool XmlRpcClient::generateRequest |
( |
const char * |
method, |
|
|
XmlRpcValue const & |
params |
|
) |
| |
|
protectedvirtual |
const std::string& XmlRpc::XmlRpcClient::getHost |
( |
| ) |
|
|
inline |
int XmlRpc::XmlRpcClient::getPort |
( |
| ) |
const |
|
inline |
const std::string& XmlRpc::XmlRpcClient::getUri |
( |
| ) |
|
|
inline |
unsigned XmlRpcClient::handleEvent |
( |
unsigned |
eventType | ) |
|
|
virtual |
bool XmlRpc::XmlRpcClient::isFault |
( |
| ) |
const |
|
inline |
bool XmlRpcClient::parseResponse |
( |
XmlRpcValue & |
result | ) |
|
|
protectedvirtual |
bool XmlRpcClient::readHeader |
( |
| ) |
|
|
protectedvirtual |
bool XmlRpcClient::readResponse |
( |
| ) |
|
|
protectedvirtual |
bool XmlRpcClient::setupConnection |
( |
| ) |
|
|
protectedvirtual |
bool XmlRpcClient::writeRequest |
( |
| ) |
|
|
protectedvirtual |
int XmlRpc::XmlRpcClient::_bytesWritten |
int XmlRpc::XmlRpcClient::_contentLength |
bool XmlRpc::XmlRpcClient::_eof |
bool XmlRpc::XmlRpcClient::_executing |
std::string XmlRpc::XmlRpcClient::_header |
std::string XmlRpc::XmlRpcClient::_host |
|
protected |
bool XmlRpc::XmlRpcClient::_isFault |
int XmlRpc::XmlRpcClient::_port |
|
protected |
std::string XmlRpc::XmlRpcClient::_request |
std::string XmlRpc::XmlRpcClient::_response |
int XmlRpc::XmlRpcClient::_sendAttempts |
std::string XmlRpc::XmlRpcClient::_uri |
|
protected |
const char XmlRpcClient::FAULT_TAG = "<fault>" |
|
static |
const char XmlRpcClient::METHODRESPONSE_TAG = "<methodResponse>" |
|
static |
const char XmlRpcClient::PARAM_ETAG = "</param>" |
|
static |
const char XmlRpcClient::PARAM_TAG = "<param>" |
|
static |
const char XmlRpcClient::PARAMS_ETAG = "</params>" |
|
static |
const char XmlRpcClient::PARAMS_TAG = "<params>" |
|
static |
const char XmlRpcClient::REQUEST_BEGIN |
|
static |
Initial value:=
"<?xml version=\"1.0\"?>\r\n"
"<methodCall><methodName>"
Definition at line 29 of file XmlRpcClient.h.
const char XmlRpcClient::REQUEST_END = "</methodCall>\r\n" |
|
static |
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 Nov 2 2020 03:52:24