Fixed and clarified text about handleTimeout() return value.

This commit is contained in:
Vincent Richard 2013-03-13 17:47:47 +01:00
parent 742917a382
commit 7550835f47

View File

@ -703,9 +703,11 @@ class timeoutHandler : public object
While the operation runs, the service calls {\vcode isTimeout()} at variable While the operation runs, the service calls {\vcode isTimeout()} at variable
intervals. If the {\vcode isTimeout()} function returns {\vcode true}, intervals. If the {\vcode isTimeout()} function returns {\vcode true},
then {\vcode handleTimeout()} is called. If the {\vcode handleTimeout()} then {\vcode handleTimeout()} is called. If the {\vcode handleTimeout()}
function also returns {\vcode true}, the function returns {\vcode false}, the operation is cancelled and
operation is cancelled and an {\vcode operation\_timed\_out} exception is an {\vcode operation\_timed\_out} exception is thrown. Else, if
thrown. The function {\vcode resetTimeout()} is called each time data has {\vcode handleTimeout()} returns true, the operation continues and the
time-out count is reset.
The function {\vcode resetTimeout()} is called each time data has
been received from the server to reset time-out delay. been received from the server to reset time-out delay.
The following example shows how to implement a simple time-out handler: The following example shows how to implement a simple time-out handler: