Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.Connected
Indicates if the peer connection is open and active.

function Connected: Boolean; virtual;
Description
Connected is a Boolean function used to indicate when the connection to the peer is open and active. Connected calls CheckForDisconnect to to determine if the connection was closed normally or abruptly terminated, and returns true when the IOHandler indicates that it is Connected.