[ROOT] - using TTimer and sockets.

From: Caius Howcroft (howcroft@hep.phy.cam.ac.uk)
Date: Tue Mar 27 2001 - 13:00:16 MEST


Hi,

I am wanting send messages out to clients connected to TCPIP sockets.  The
messages must be responded to within a set time, if not I want to
generate a error message that will propagate up through the system. At
the same time I want to send periodic data messages (polling) to the same
clients.

So I was planning to use TTimer to time the timeouts and the polling
messages. I notice that you can run TTImer a-synchronously.  When the 
timer times out and calls TTimer::Notify() does that halt the execution of
the procces and move execution to this method, even with the
procces on a blocking
read?. If so will it then return to the place it left off?

I tried to write a little test and cant make heads or tails of whats going
on..


cheers in advance

Caius
_______________________
CAIUS HOWCROFT
01223 711 788 UK(home)
07977 473 937 UK(mobile)
01223 766 300 UK(Office)



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET