Topic Path: Symbol Reference > Classes > TIdSocketHandles Class > TIdSocketHandles Methods > Add Method
TIdSocketHandles.Add Method

Adds a socket handle to the collection.

function Add: TIdSocketHandle; reintroduce;

TIdSocketHandle - Socket handle added to the collection.

Add is a TIdSocketHandle function reintroduced in TIdSocketHandles to allow creating collection items of the TIdSocketHandle type. 

Add calls the inherited Add method and casts the return value to the TIdSocketHandle type used as collection items in the container. 

Add ensures that the port number for the newly allocated socket handle is set to the value specified in DefaultPort.

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