Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : 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:09:29 |
"Gerhard Venter" <IeatSpam4breakfast@spam.com> wrote in message
news:44e9f60b$1@newsgroups.borland.com...
> if IdTCPClient.Connected then
You don't need that either:
try
IdTCPClient.SendCmd(CmdStr_StdQuit);
except
on E: EIdConnClosedGracefully do
...handle error
on E: EIdClosedSocket do
....handle error
on E: Exception do
...handle error
end;
Gambit
none