Responder Class Referenceabstract

#include <Pt/Remoting/Responder.h>

Dispatches requests to a service procedure.

Inherits NonCopyable.

Inherited by Responder, and Responder.

Public Member Functions

 Responder (ServiceDefinition &serviceDef)
 Construct with Service.
 
virtual ~Responder ()
 Destructor.
 
const ServiceProcedureactiveProcedure () const
 The currently executing procedure.
 
void cancel ()
 Resets to initial state.
 

Protected Member Functions

void beginCall (System::EventLoop &loop)
 Begins the service procedure call.
 
Pt::DecomposerendCall ()
 Ends the service procedure call.
 
virtual void onCancel ()=0
 Cancels all operations. More...
 
virtual void onReady ()=0
 The service procedure has finished. More...
 
Pt::Composer ** setProcedure (const std::string &name)
 Sets the service procedure.
 

Member Function Documentation

virtual void onCancel ( )
protectedpure virtual

Derived responders implement this method to cancel all operations.

Implemented in Responder, and Responder.

virtual void onReady ( )
protectedpure virtual

Derived responders implement this method to format and send the XML-RPC result. It is called when the service procedure has finished. Use beginResult(), advanceResult() and finishResult() to format the XML-RPC result.

Implemented in Responder, and Responder.