Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandlerStream.Close Method

Closes the IO handler and associated Intercepts and transports.

Pascal
procedure Close; override;

Close is a overridden procedure used to ensure that an assigned Intercept for the connection is also disconnected when the IO handler is closed. 

Close calls the inherited Close method. 

Close also frees the stream instances assigned to ReceiveStream and SendStream when FreeStreams indicates that the IOHandler is the owner of the streams. 

Use Open to open the IOHandler and trigger the OnGetStreams event handler for initializing stream instances.

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.