#include <Pt/Remoting/Responder.h>
Dispatches requests to a service procedure.
Inherits NonCopyable.
Inherited by Responder, Responder, and Responder.
|
|
| Responder (ServiceDefinition &serviceDef) |
| | Construct with Service.
|
|
virtual | ~Responder () |
| | Destructor.
|
|
void | cancel () |
| | Resets to initial state.
|
|
const ServiceProcedure * | activeProcedure () const |
| | The currently executing procedure.
|
|
|
Pt::Composer ** | setProcedure (const std::string &name) |
| | Sets the service procedure.
|
|
void | beginCall (System::EventLoop &loop) |
| | Begins the service procedure call.
|
|
Pt::Decomposer * | endCall () |
| | Ends the service procedure call.
|
|
Pt::Decomposer * | call () |
| | Synchronous call without EventLoop.
|
| virtual void | onCancel ()=0 |
| | Cancels all operations.
|
| virtual void | onReady ()=0 |
| | The service procedure has finished.
|
◆ onCancel()
| virtual void onCancel |
( |
| ) |
|
|
protectedpure virtual |
◆ onReady()
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, Responder, and Responder.