From 7550835f47ab1637966f802f2d0ff99cc63dd761 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 13 Mar 2013 17:47:47 +0100 Subject: [PATCH] Fixed and clarified text about handleTimeout() return value. --- doc/book/net.tex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/book/net.tex b/doc/book/net.tex index 52ba665a..7653b48e 100644 --- a/doc/book/net.tex +++ b/doc/book/net.tex @@ -703,9 +703,11 @@ class timeoutHandler : public object While the operation runs, the service calls {\vcode isTimeout()} at variable intervals. If the {\vcode isTimeout()} function returns {\vcode true}, then {\vcode handleTimeout()} is called. If the {\vcode handleTimeout()} -function also returns {\vcode true}, the -operation is cancelled and an {\vcode operation\_timed\_out} exception is -thrown. The function {\vcode resetTimeout()} is called each time data has +function returns {\vcode false}, the operation is cancelled and +an {\vcode operation\_timed\_out} exception is thrown. Else, if +{\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. The following example shows how to implement a simple time-out handler: