Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandlerStream.Connected Method

Indicates the connection is open, and stream(s) are assigned.

Pascal
function Connected: Boolean; override;

Boolean - True when the connection is open, or data exists in the Indy buffer.

Connected is an overidden Boolean function used to indicate that connection for the IOHandler has been established, and that a stream (or streams) have been assigned for the IOHandler. 

The return value for the function is True when valid stream instances are assigned for the IOHandler. 

Connected uses StreamType to determine the streams be checked for valid stream instances in the IOHandler. Connected returns True when the following conditions are met for the indicated StreamType

 

Stream Type 
Condition 
stRead 
ReceiveStream is assigned. 
stWrite 
SendStream is assigned. 
stReadWrite 
Both ReceiveStream and SendStream are assigned. 
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.