Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Nov : Indy: how to detect client termination

www.cryer.info
Managed Newsgroup Archive

Indy: how to detect client termination

Subject:Indy: how to detect client termination
Posted by:"Jackson Gomes" (no@spam)
Date:Wed, 9 Nov 2005 11:58:23

I have TCP server and client apps, client does .Disconnect on close.

But if client is crashed and its FormDestroy is not performed...Socket
remains
connected on server side and no OnDisconnect event is fired.

How one can detect client process termination? Is there a way on server to
check
if the connection is alive? Should i just write something to connection and
catch
the exception?

Thanx.

Replies:

www.cryer.info
Managed Newsgroup Archive