Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > Readable Method
ContentsIndexHome
PreviousUpNext
TIdIOHandler.Readable Method

Indicates if the IOHandler is ready to perform a read request.

function Readable(
    AMSec: Integer = IdTimeoutDefault
): Boolean; virtual;
Parameters 
Description 
AMSec 
Number of milliseconds to wait for an IOHandler connection to become ready for a read operation. The default value is IdTimeoutDefault

Boolean - True when the connection is ready for the IO request.

Readable is a virtual Boolean function that indicates if the connection for the IOHandler is ready to perform an IO request. 

AMSec indicates the number of milliseconds to wait for the IOHandler connection to become ready for the read operation. The default value is IdTimeoutDefault

In TIdIOHandler, the return value for the method is False. 

Readable has no significance in TIdIOHandler, but is provided for compatibility with descendant classes that may not have an overridden implementation of the method.

TIdIOHandlerSocket.Readable 

TIdIOHandlerStack.Readable

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