Topic Path: Symbol Reference > Classes > TIdSocketListWindows Class > TIdSocketListWindows Methods > Add Method
ContentsIndexHome
PreviousUpNext
TIdSocketListWindows.Add Method

Adds a socket handle to the list.

procedure Add(
    AHandle: TIdStackSocketHandle
); override;
Parameters 
Description 
AHandle 
Socket handle added to the list. 

Add is an overridden procedure that implements the interface used to add a socket handle to the list. 

Add use Lock to protect access to socket handles in the list during the operation, and calls Unlock prior to exiting from the method. 

Add raises an EIdStackSetSizeExceeded if the number of socket handles in the list would exceed FD_SETSIZE when the handle is added. 

Add increases the length of the socket descriptor set, and stores AHandle at the highest position in the list. 

Use Remove to delete a socket handle from the list, or Clear to remove all socket handles in the list.

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