Internet Direct (Indy) Version 9.0.2 Beta
TIdIOHandlerStream.Readable
Indicates if the handler is ready to perform an input operation.

function Readable(AMSec: integer): boolean; override;
Parameters
AMSec: integer = IdTimeoutDefault
Milliseconds to wait for a ready state. Default value is IdTimeoutDefault.

Returns
Boolean - True when the handelr is ready to read or write.

Description
Readable is an overriden Boolean function that indicates if the handler is ready to perform an input operation. The return value for the method is True when ReadStream contains a valid TStream instance, and the current position is not at the end of the stream.

Note: The AMSec input parameter is not used for a strean-based input/output handler, and is provided for interface compatibility with the inherited method in the ancestor class.