> How to implement the time of the last action on the event and then check OnDataAvailable?
Assuming you use ThrdSrv: Add a filed in the class TThrdSrvClient which is instanciated for each client connecting. Update this filed for datetime of the last message sent by the client, probably from the Datavaialble event hanlder. Then from the outside, for example using a TTimer triggered avery 30 sec, iterate thru the client list of the server component and check the last message datetime of each client, calling Abort should that time be greater than a given timeout value. -- francois.pie...@overbyte.be Embarcadero MVP http://www.overbyte.be http://francois-piette.blogspot.com -- 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