Topic Path: Symbol Reference > Classes > TIdIOHandlerStack Class > TIdIOHandlerStack Methods > CheckForDataOnSource Method
TIdIOHandlerStack.CheckForDataOnSource Method

Determine if data is available in the unbuffered communication layer for the connection.

procedure CheckForDataOnSource(
    ATimeout: Integer = 0
); override;
Milliseconds to wait for the connection to become readable, or to return data. 

CheckForDataOnSource is an overridden procedure that implements the method used to determine when new data is available for adding to the buffering mechanism in Indy. 

ATimeout indicates the number of milliseconds to wait for the connection to become readable, or to return data values for the read operation. 

CheckForDataOnSource requires that the socket handle be Connected

CheckForDataOnSource will call the protected ReadFromSource method to retrieve unbuffered data from the communications layer, and adds the values to the internal buffer used for subsequent processing.

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