info2004 wrote:
> How would I implement a timeout? Do I create a timer component within
> the thread, or is there a more elegant solution?

A timer is ok since your thread processes messages already :-)
You could, for example, use an integer that is incremented in timer's 
event handler and reset it to zero when TWSocket receives something. 
In the timer event handler check that integer.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

  
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to