2#ifndef _XMLRPCCLIENT_H_
3#define _XMLRPCCLIENT_H_
8# pragma warning(disable:4786)
43 XmlRpcClient(
const char* host,
int port,
const char* uri=0);
A class to send XML RPC requests to a server and return the results.
static const char PARAM_ETAG[]
static const char PARAMS_ETAG[]
static const char REQUEST_END[]
XmlRpcClient(const char *host, int port, const char *uri=0)
bool execute(const char *method, XmlRpcValue const ¶ms, XmlRpcValue &result)
virtual std::string generateHeader(std::string const &body)
bool isFault() const
Returns true if the result of the last execute() was a fault response.
virtual void close()
Close the connection.
static const char REQUEST_END_METHODNAME[]
ClientConnectionState _connectionState
virtual bool parseResponse(XmlRpcValue &result)
static const char REQUEST_BEGIN[]
static const char PARAM_TAG[]
virtual bool setupConnection()
virtual bool writeRequest()
virtual bool readResponse()
virtual ~XmlRpcClient()
Destructor.
virtual bool readHeader()
static const char METHODRESPONSE_TAG[]
static const char FAULT_TAG[]
static const char PARAMS_TAG[]
virtual bool generateRequest(const char *method, XmlRpcValue const ¶ms)
virtual unsigned handleEvent(unsigned eventType)
An RPC source represents a file descriptor to monitor.
RPC method arguments and results are represented by Values.