Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jan : how to check for disconnected sockets

www.cryer.info
Managed Newsgroup Archive

how to check for disconnected sockets

Subject:how to check for disconnected sockets
Posted by:"Eugene V. Goldberg" (ego..@mts-nn.ru)
Date:Wed, 18 Jan 2006 09:34:04

D7, Indy 9.00.18

I am using TIdTCPClient and TIdTCPServer components.

Client connects and then i need to detect when client application terminates
abnormally, for example when client machine got power pulled off...

In this case, it looks like IdTCPServer.OnDisconnect event is not fired...

How can i detect client termination in this case using TCP connection?

If i will be sending some data over connection on timer, will OnDisconnect
event
fire if another side is unreachable?

Thanks,
Eugene.

Replies:

www.cryer.info
Managed Newsgroup Archive