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

Indicates if the IOHandler is ready to perform input operations.

function Readable(
    AMSec: integer = IdTimeoutDefault
): Boolean; override;
Parameters 
Description 
AMSec 
Milliseconds to wait for the IOHandler to be ready for input operations. Default value is IdTimeoutDefault

Boolean - True when the IOHandler is ready and a timeout has not occurred.

Readable is an overridden Boolean function in TIdIOHandlerStreamMsg that indicates if the IOHandler is ready to perform input operations using the ReceiveStream for the stream-aware IOHandler. 

AMSec indicates the number of Milliseconds to wait for the IOHandler to be ready for input operations. The default value is IdTimeoutDefault

If a previous message termination sequence (CRLF.CRLF) has not been read from the stream data source, the inherited Readble method is called, and the return value for the method is set to True. 

The return value for the method is False when the ReceiveStream is unassigned, or the message termination sequence has been previously read from the stream data source.

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