Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : OnDisconnected event

www.cryer.info
Managed Newsgroup Archive

OnDisconnected event

Subject:OnDisconnected event
Posted by:"Arnau Font" (afont@nospam_really_ipssoft.com)
Date:Thu, 14 Dec 2006 16:41:25

Hi Group,

I've got a TIdTCPClient that establishes a connection with a TIdTCPServer.

I've assigned a event to the OnDisconnected event to know when do I lose the
connection with the server.
An EIdClosedGracefully exception raises, but the event doesn't execute.
Looks like it only executes if I call Socket.Disconnect. Is this the normal
behaviour?

Thanks,
Arnau.

Replies:

www.cryer.info
Managed Newsgroup Archive