Internet Direct (Indy) Version 9.0.2 Beta
TIdIOHandlerStream.Connected
Indicates that the input and output targets are valid for the handler.

function Connected: Boolean; override;
Returns
Boolean - True when input and output streams have been assigned.

Description
Connected is an overriden Boolean function that indicates when both ReadStream and WriteStream contain valid TStream instances to be used for input and output using the handler. Applications must assign instances of a TStream descendant to ReadStream and WriteStream, or the method will return False.