Topic Path: Symbol Reference > Classes > TIdIOHandlerStream Class > TIdIOHandlerStream Methods > Connected Method
ContentsIndexHome
PreviousUpNext
TIdIOHandlerStream.Connected Method

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

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. 
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.