Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketListDotNet.Clone Method

Creates a duplicate copy of the socket handles in the list.

Pascal
function Clone: TIdSocketList; override;

TIdSocketList - List of duplicated socket handles.

Clone is an overridden TIdSocketList function that implements the method used to create duplicate copies of the socket descriptors stored in the list. 

The return value for the method is a new TIdSocketListDotNet instance created for the cloned socket handles. 

Clone sets the contents of the return value using the Clone method in the ArrayList that implements storage for the list. 

On the .Net platform, the internal ArrayList is updated on return. As A result, the socket list must be copied each time it is accessed in SelectRead and SelectReadList.

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.