Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketList.SelectRead Method

Indicates if socket handles are avaiable for reading.

Pascal
function SelectRead(
    const ATimeout: Integer = IdTimeoutInfinite
): Boolean; virtual; abstract;
Parameters 
Description 
ATimeout 
Timeout value for the Select() API call. 

Boolean - True when a socket handle is available for reading.

SelectRead is an abstract virtual Boolean function that specifies the method used to access the Select() API for a protocol stack implementation. 

SelectRead is a convenience method used to indicate if there are readable socket handles for the protocol stack. SelectRead returns True when the list of socket handles ready for reading would contain a positive non-zero value. 

ATimeout indicates the number of milliseconds to wait for successful completion of the Select() API call. 

SelectRead must be implemented in a descendant class using the protocol stack and list implementation for a specific operating system or platform. 

Use Select or SelectReadList get the list of socket handles.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.