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

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

function Contains(
    AHandle: TIdStackSocketHandle
): boolean; override;
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.

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