Hi Caius, check the TMonitor class. You can use that class to monitor a set of sockets. In the Select() method you can specify a timeout value that will force a return if no socket responded within that period. Cheers, Fons. Caius Howcroft wrote: > > 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) -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET