Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Detect server disconnection from the TIdCMDTCPClient
| Subject: | Re: Detect server disconnection from the TIdCMDTCPClient |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Thu, 21 Feb 2008 11:08:22 |
"Moore" <moore@hotmail.com> wrote in message
news:47bd3dfa$1@newsgroups.borland.com...
> How can I detect the disconnection of the server
> from the TIdCMDTCPClient events or methods?
There is no event notification on the client side for that. Client side
disconnects are reported using exceptions instead. However, such exceptions
would occur inside of TIdCmdTCPClient's internal reading thread, and thus
you don't have direct access to it.
Gambit