Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Testing for lost conection

www.cryer.info
Managed Newsgroup Archive

Testing for lost conection

Subject:Testing for lost conection
Posted by:"Grant Brown" (gra..@sitedoc.com.au)
Date:21 Aug 2006 03:37:46

Hi,

Using D10 and Indy 10

Is the following the best way in which to check for a lost connection
when using a TIdTCPClient

if IdTCPClient.Socket.ClosedGracefully = false then
IdTCPClient.SendCmd(CmdStr_StdQuit);

I do really need to know how the connection was closed or lost just the
fact that it does not exist anymore.

If not then could someone show me a better way.


Kind Regards
Grant Brown


--

Replies:

www.cryer.info
Managed Newsgroup Archive