Topic Path: Symbol Reference > Classes > TIdIOHandlerStream Class > TIdIOHandlerStream Events > OnGetStreams Event
ContentsIndexHome
PreviousUpNext
TIdIOHandlerStream.OnGetStreams Event

Event handler signalled for creating streams for the IOHandler.

property OnGetStreams: TIdOnGetStreams;

OnGetStreams is a TIdOnGetStreams property that represents the event handler signalled when stream(s) need to be created for the IOHandler. 

OnGetStreams is triggered in Open when an event handler has been assigned for the property. The ReceiveStream and SendStream properties are passed as arguments to the event handler. 

Assign a procedure to the event handler to allow responding to the TIdOnGetStreams event notification. 

Change the value in FreeStreams to False if the stream instances in ReceiveStream and SendStream should be freed by the application instead of in the destructor for the IOHandler.

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