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

Removes a socket handle from the socket list.

procedure Remove(
    AHandle: TIdStackSocketHandle
); override;
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.

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