Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketHandle.Destroy Destructor

Destructor for the object instance.

Pascal
destructor Destroy; override;

Destroy is the destructor for the object instance. 

Destroy calls CloseSocket to close the connection using the socket handle, and destroys the socket handle for the descriptor to ensure that additional IO cannot be performed. 

Destroy frees the interal TIdCriticalSection instance used to provide thread-safe access to resources in the class instance. 

Destroy calls the inherited destructor propr to exiting from the method.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.