AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code

◆ DcppHandler() [2/2]

DcppHandler::DcppHandler ( DcppCallbackBase *  CallbackObj,
const float  Timeout = -1 
)

Construct a DcppHandler object.

Note that to actually make this object responsiable for handling the rescheduling of an action, you should invoke DcppHandler::Install and DitsPutRequest(DITS_REQ_MESSAGE,status).

The DcppHandler takes ownership of the CallbackObj.

Parameters
CallbackObjA callback object that defines 2 methods (i) Finished() and (ii) Error(). The Finished() method is invoked when all the subsidary messages have completed and the DcppHandler object is intending to cause the action to complete. The Error() method is invoked if an error occurs while dispatching a message. See DcppCallbackBase class description for mote details.
TimeoutIf no messages are received for this number of seconds, the timeout handler, if any, is invoked. If there is no timeout handler, this event is triggered as an error. A negative value indicates no timeout is to be enabled.