Hello guys, I'm using the component connections TWSocket for various
customers making and receiving requests, in some cases the client loses the
connection to the server, the more active thread Contina and list one
example of this is when we took the cable network terminal that is
currently logged on, and it will consume memory, how do I scroll through
the list and check if customers are active or not to give a "Release"?

on timer:

    for Index := 0 to ClientListBox.Items.Count - 1 do begin
        Buf          := ClientListBox.Items[0];
        ClientThread := TClientThread(htoin(PChar(Buf), Length(Buf)));

        if ClientThread.ClientWSocket.Terminated then
           ClientThread.Release;

        if ClientThread.ClientWSocket.OnSessionClosed then
           ClientThread.Release;

        Application.ProcessMessages;
    end;


Dont work!!

Thanks!

-- 
By {Dark_Ducke}
--
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