Internet Direct (Indy) Version 9.0.2 Beta
TIdSocketHandles.Add
Creates a new collection item instance and adds it to Items.

function Add: TIdSocketHandle;
Returns
TIdSocketHandle - The binding added to the collection.

Description
Add is a function that creates a new instance of TIdSocketHandle, and adds the instance to the collection Items.

Add relies on the inherited Add method, and casts the new instance to the appropriate ItemClass (TIdSocketHandle) prior to exiting the method. Add assigns the value in DefaultPort to Port property of the new instance. Add returns the new collection item.