Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketListDotNet.SelectRead Method

Indicates if socket handles are avaiable for reading.

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

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

SelectRead is an overridden Boolean function that implements the method used to access the Select() API for the protocol stack implementation. 

SelectRead is 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. When ATimeout contains IdTimeoutInfinite, MaxLongint is used in the Select() API call. 

SelectRead re-raises any exception occuring in the method using either the EIdSockerr or EIdWrapperException exception types. 

Use Select or SelectReadList get a 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.