Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketListWindows.Remove Method

Removes a socket handle from the socket list.

Pascal
procedure Remove(
    AHandle: TIdStackSocketHandle
); override;
Parameters 
Description 
AHandle 
Socket handle to remove from the socket list. 

Remove is an overridden procedure that implements the method used to remove the socket handle in AHandle from the socket list. 

Remove calls Lock to protect resources in the socket list during the operation, and calls Unlock to free the resource protection prior to exiting from the method. 

Remove iterates over the socket descriptors in the current set to locate the handle specified in AHandle. If AHandle is found, the number of descriptors in the current set is decreased and the current set is refreshed.

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.