[twsocket] how to legally close and free client

2011-07-21 Thread Lukas Skala
hello, I have server application based on TWSocketServer, clients are derived from TWSocketClient class. I need disconnect inactive clients. I'm not sure how to disconnect client, I'm using this: procedure DisconnectMyClient(i: Integer); var C: TTcpSrvClient; {TTcpSrvClient =

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Lukas Skala
as you adviced me). I have tried to add C.Free call but I have thought it was nonse (you have confirmed it me). One question for sure: When I call Client.Close the Client will be freed automatically (destructor of Client will be called)? thank you again have a nice day lukas skala Dne 21.7.2011

[twsocket] multithread server

2011-08-17 Thread Lukas Skala
:52 I ClientDataAvailable started. 17.08.11 15:42:52 I Received from 89.24.4.161: 0 byte(s). 17.08.11 15:42:52 D Received -1 byte(s). 17.08.11 15:42:52 I ClientDataAvailable ended. Thanks for any idea. Lukas -- lukas skala envinet a.s. divize projektu a inzenyringu (project and engineering