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

◆ DcppHandler() [1/2]

DcppHandler::DcppHandler ( const DcppHandlerRoutine  FinishedHandler = 0,
const DcppHandlerRoutine  ErrorHandler = 0,
const DcppVoidPnt  ClientData = 0,
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).

Parameters
FinishedHandlerA routine to be invoked when the all subsidary messages have completed and the DcppHandler:: object is intending to cause the action to complete. If it returns DcppReschedule, the action will continue. Otherwise the action will complete.
ErrorHandlerInvoked if an error occurs whilst dispatching a message. See class description for more details.
ClientDataPassed to the handler functions.
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.