Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandler.Open Method

Prepares the IOHandler for subsequent read and write requests.

Pascal
procedure Open; virtual;

Open is a virtual procedure used to allocate buffers and reset state properties used in IOHandler methods that perform Send and Receive operations. 

Open recreates the receive buffer used when reading data from the transport for the IOHandler. Open also creates the InputBuffer used as internal storage for unhandled data read from the transport for the IOHandler. 

Open sets ClosedGracefully to False and Opened to True. 

Use Close to free resources allocated to the receive buffer and InputBuffer.

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.