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

www.cryer.info
Managed Newsgroup Archive

Re: Testing for lost conection

Subject:Re: Testing for lost conection
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 21 Aug 2006 12:03:11

"Grant Brown" <grant@sitedoc.com.au> wrote in message
news:44e98cfa@newsgroups.borland.com...

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

Simply call SendCmd() without checking at all.  If the connection was lost,
SendCmd() wil throw an exception that you can catch.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive