Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketListWindows.Contains Method

Indicates if a socket handle is already stored in the socket list.

Pascal
function Contains(
    AHandle: TIdStackSocketHandle
): boolean; override;
Parameters 
Description 
AHandle 
Socket handle to locate in the socket list. 

boolean - True when the socket handle already exists in the list.

Contains is an overridden boolean function that implements the method used to determine if the socket handle in AHandle is already stored in the socket list. 

Contains calls Lock to protect resource while searching the handles in the socket list, and calls Unlock to release the resource protection prior to exiting from the method. 

The return value for the method is the result from the fd_isset() API for the protocol stack inplementation.

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.