Internet Direct (Indy) Version 9.0.1 Beta
TIdIOHandler.Connected
Indicates if the IOHandler connection is prepared and opened.

function Connected: Boolean; virtual; abstract;
Returns
Boolean - True when the IOHandler connection is prepared and opened.

Description
Connected is an abstract virtual Boolean function in TIdIOHandler that specifies the method to be used to determine when the physical connection for the IOHandler has been established. TIdIOHandler descendant classes must implement Connected to indicate when the connection is available for input/output operations.

For Socket-based IOHandlers, like TIdIOHandlerSocket and TIdSSLIOHandlerSocket, Connected will indicate when the socket handle in Binding has been allocated.

For Stream-based IOHandlers, like TIdIOHandlerStream, Connected will indicate when the read and/or write stream has been assigned for the corresponding stream type.

Use Open to prepare the physical connection for the IOHandler, and ConnectCLient to establish the connection used by the IOHandler.