#include <Pt/XmlRpc/Client.h>
A client for remote procedure calls.
Inherits Client.
Inherited by HttpClient.
|
| Client () |
| Constructor.
|
|
virtual | ~Client () |
| Destructor.
|
|
const RemoteCall * | activeProcedure () const |
| The currently executing procedure.
|
|
void | cancel () |
| Cancels the currently executing procedure.
|
|
bool | isFailed () const |
| Indicates if the procedure has failed.
|
|
virtual void onCancel |
( |
| ) |
|
|
protectedvirtual |
Derived Clients implement this method to cancel the remote procedure call.
Implements Client.
Reimplemented in HttpClient.
virtual void onBeginInvoke |
( |
| ) |
|
|
protectedpure virtual |
Derived Clients implement this method to format and send a message to the service.
Implemented in HttpClient.
virtual void onInvoke |
( |
| ) |
|
|
protectedpure virtual |
Derived Clients implement this method to format and send a message to the service and receive and parse the result.
Implemented in HttpClient.
void beginMessage |
( |
std::ostream & |
os | ) |
|
|
protected |
This method is used by derived Clients in onInvoke() and onCall() to begin formatting a XML-RPC message to a std::ostream.
This method is used by derived Clients in onInvoke() and onCall() to format a XML-RPC message. Each call generates a chunk of the message and returns true if the message is complete.
This method is used by derived Clients in onInvoke() and onCall() to format the end of a XML-RPC message. It is called after advanceMessage() returns true.
void beginResult |
( |
std::istream & |
is | ) |
|
|
protected |
This method is used by derived Clients to begin parsing a XML-RPC result from a std::istream.
This method is used by derived Clients to parse a XML-RPC result Each call consumes the available data from the std::istream set with beginResult() and returns true if the result is complete.
void processResult |
( |
std::istream & |
is | ) |
|
|
protected |
This method is used by derived Clients after the XML-RPC result has been parsed by parseResult(). The current RemoteProcedure will receive completion notification to process the result.Parses the XML-RPC result.
This method is used by derived Clients in in onCall() to parse a XML-RPC result from a std::istream.
void setFault |
( |
int |
rc, |
|
|
const char * |
msg |
|
) |
| |
|
protected |
This method is used by derived Clients before calling finishResult() so that the RemoteProcedure throws a Fault when the result is processed.
This method is used by derived Clients after the XML-RPC result has been parsed by parseResult(). The current RemoteProcedure will receive completion notification to process the result.