Client Class Referenceabstract

#include <Pt/Remoting/Client.h>

A client for remote procedure calls.

Inherits NonCopyable.

Inherited by Client, and Client.

Public Member Functions

 Client ()
 Constructor.
 
virtual ~Client ()
 Destructor.
 
const RemoteCall * activeProcedure () const
 The currently executing procedure.
 
void cancel ()
 Cancels the currently executing procedure.
 
virtual bool isFailed () const =0
 Indicates if the procedure has failed.
 

Protected Member Functions

virtual void onCancel ()=0
 Cancels the remote procedure call. More...
 
void setReady ()
 Parses the XML-RPC result. More...
 

Member Function Documentation

void setReady ( )
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.

virtual void onCancel ( )
protectedpure virtual

Derived Clients implement this method to cancel the remote procedure call.

Implemented in HttpClient, HttpClient, Client, and Client.