Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketHandles.Add Method

Adds a socket handle to the collection.

Pascal
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.

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.