Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandlerStack.CheckForDataOnSource Method

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

Pascal
procedure CheckForDataOnSource(
    ATimeout: Integer = 0
); override;
Parameters 
Description 
ATimeout 
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.

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.