Disconnects the peer connection.
procedure Disconnect; overload;
Disconnect is a procedure used to disconnect from the peer for the connection.
If the connection is still Connected, Disconnect triggers a hsDisconnecting status notification prior to closing the IOHandler for the connection. If the connection is not Connected, no action is performed.
When FreeIOHandlerOnDisconnect contains True, the IOHandler for the connection will be freed and FreeIOHandlerOnDisconnect is reset to False.
Many descendant classes override the Disconnect method to provide termination commands and response handling required by a specific protocol.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.