Topic Path: Pending > TIdIOHandlerStream.Create@TComponent@TStream@TStream
ContentsIndexHome
PreviousUpNext
TIdIOHandlerStream.Create@TComponent@TStream@TStream

Constructor for the object instance.

Parameters 
Description 
AOwner 
Owner of the object instance.
 
AReceiveStream 
Stream to use for receving data with the IOHandler.
 
ASendStream 
Stream to use for sending data with the IOHandler. 

Create is the constructor for the object instance. 

Create calls the inherited constructor usin AOwner as the owner of the object instance. 

AReceiveStream and ASendStream are the TStream instances to use for receiving and sending data with the stream-based IOHandler. AReceiveStream and ASendStream are assigned to the ReceiveStream and SendStream properties. 

Create sets the value for FreeStreams to True. Set FreeStreams to False to allow access to the streams in AReceiveStream and ASendStream after destruction of the stream-based IOHandler. 

Create sets the default value for StreamType to stReadWrite, implying that both streams in AReceiveStream and ASendStream are valid for their intended purpose. Set the value in StreamType to indicate if only the read or write stream instances should be used in the stream-based IOHandler.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.