Topic Path: Symbol Reference > Classes > TIdSocketListDotNet Class > TIdSocketListDotNet Methods > SelectReadList Method
ContentsIndexHome
PreviousUpNext
TIdSocketListDotNet.SelectReadList Method

Gets a list of socket handles ready for reading.

function SelectReadList(
    var VSocketList: TIdSocketList; 
    const ATimeout: Integer = IdTimeoutInfinite
): Boolean; override;
Parameters 
Description 
VSocketList 
SOcket list with the readable socket handles.
 
ATimeout 
Timeout value for the Select() API call. 

Boolean - True when the socket list contains a socket handle for reading.

SelectReadList is an overridden Boolean function that implements the method used to populate the socket list in VSocketList with the socket handles ready for reading. 

SelectReadList uses the Select() API for the protocol stack implementation to populate the socket handle list. 

ATimeout is the number of milliseconds to wait for successful completion of the Select() API call. When Atimeout contains IdTimeoutInfinite, MaxLongInt is used for the timeout value. 

SelectReadList returns True when the socket list contains at least one socket handle available for reading. 

SelectReadList can raise EIdSocketError or EIdWrapperException exceptions types.

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