Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketListWindows.Add Method

Adds a socket handle to the list.

Pascal
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.

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.