#include <XmlRpcClient.h>
Inheritance diagram for XmlRpc::XmlRpcClient:

Public Member Functions | |
| XmlRpcClient (const char *host, int port, const char *uri=0) | |
| Construct a client to connect to the server at the specified host:port address. | |
| virtual | ~XmlRpcClient () |
| Destructor. | |
| bool | execute (const char *method, XmlRpcValue const ¶ms, XmlRpcValue &result) |
| Execute the named procedure on the remote server. | |
| bool | isFault () const |
| Returns true if the result of the last execute() was a fault response. | |
| virtual void | close () |
| Close the connection. | |
| virtual unsigned | handleEvent (unsigned eventType) |
| Handle server responses. | |
Static Public Attributes | |
| const char | REQUEST_BEGIN [] |
| const char | REQUEST_END_METHODNAME [] = "</methodName>\r\n" |
| const char | PARAMS_TAG [] = "<params>" |
| const char | PARAMS_ETAG [] = "</params>" |
| const char | PARAM_TAG [] = "<param>" |
| const char | PARAM_ETAG [] = "</param>" |
| const char | REQUEST_END [] = "</methodCall>\r\n" |
| const char | METHODRESPONSE_TAG [] = "<methodResponse>" |
| const char | FAULT_TAG [] = "<fault>" |
Protected Types | |
| enum | ClientConnectionState { NO_CONNECTION, CONNECTING, WRITE_REQUEST, READ_HEADER, READ_RESPONSE, IDLE } |
Protected Member Functions | |
| virtual bool | doConnect () |
| virtual bool | setupConnection () |
| virtual bool | generateRequest (const char *method, XmlRpcValue const ¶ms) |
| virtual std::string | generateHeader (std::string const &body) |
| virtual bool | writeRequest () |
| virtual bool | readHeader () |
| virtual bool | readResponse () |
| virtual bool | parseResponse (XmlRpcValue &result) |
Protected Attributes | |
| ClientConnectionState | _connectionState |
| std::string | _host |
| std::string | _uri |
| int | _port |
| std::string | _request |
| std::string | _header |
| std::string | _response |
| int | _sendAttempts |
| int | _bytesWritten |
| bool | _executing |
| bool | _eof |
| bool | _isFault |
| int | _contentLength |
| XmlRpcDispatch | _disp |
|
||||||||||||||||
|
Construct a client to connect to the server at the specified host:port address.
|
|
||||||||||||||||
|
Execute the named procedure on the remote server.
|
|
|
Handle server responses. Called by the event dispatcher during execute.
Implements XmlRpc::XmlRpcSource. |
|
|
Initial value: "<?xml version=\"1.0\"?>\r\n" "<methodCall><methodName>" |
1.3-rc3