2 #ifndef _XMLRPCCLIENT_H_ 3 #define _XMLRPCCLIENT_H_ 8 # pragma warning(disable:4786) // identifier was truncated in debug info 29 static const char REQUEST_BEGIN[];
30 static const char REQUEST_END_METHODNAME[];
31 static const char PARAMS_TAG[];
32 static const char PARAMS_ETAG[];
33 static const char PARAM_TAG[];
34 static const char PARAM_ETAG[];
35 static const char REQUEST_END[];
37 static const char METHODRESPONSE_TAG[];
38 static const char FAULT_TAG[];
44 XmlRpcClient(
const char* host,
int port,
const char* uri=0);
61 bool executeNonBlock(
const char* method,
XmlRpcValue const& params);
75 virtual unsigned handleEvent(
unsigned eventType);
79 virtual bool doConnect();
80 virtual bool setupConnection();
82 virtual bool generateRequest(
const char* method,
XmlRpcValue const& params);
83 virtual std::string generateHeader(
size_t length)
const;
84 virtual bool writeRequest();
85 virtual bool readHeader();
86 virtual bool readResponse();
100 const std::string &
getHost() {
return _host; }
101 const std::string &
getUri() {
return _uri; }
137 #endif // _XMLRPCCLIENT_H_
RPC method arguments and results are represented by Values.
const std::string & getHost()
void execute(XmlRpcValue ¶ms, XmlRpcValue &result)
ClientConnectionState _connectionState
An RPC source represents a file descriptor to monitor.
const std::string & getUri()
A class to send XML RPC requests to a server and return the results.
bool isFault() const
Returns true if the result of the last execute() was a fault response.