Topic Path: Symbol Reference > Classes > TIdSocketListWindows Class > TIdSocketListWindows Methods > SelectReadList Method
TIdSocketListWindows.SelectReadList Method

Populates the list of socket handles ready for reading.

function SelectReadList(
    var VSocketList: TIdSocketList; 
    const ATimeout: Integer = IdTimeoutInfinite
): Boolean; override;
SOcket list with the readable socket handles.
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() and fd_set() APIs for a protocol stack implementation to populate the socket handle list. 

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

SelectReadList converts the set of readable socket descriptors for storage in the TIdSocketList instance. If VSocketList is unassigned, a new TIdSocketListWindows instance is create for the converted values.

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