Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketHandle.Create Constructor

Constructor for the object instance.

Pascal
constructor Create(
    ACollection: TIdCollection
); override;
Parameters 
Description 
ACollection 
Collection the owns the collection item. 

Create is the constructor for the object instance. Create calls the inherited Create method using ACollection as the owner of the collection item. 

Create allocates an internal TIdCriticalSection instance that is used to provide thread-safe access to the socket handle and flags allocated for the class instance. 

Create calls Reset to ensure that all properties for the socket descriptor are set to their default values. 

Create sets the following properties to their default values: 

 

Property 
Value 

 

When ACollection has been assigned, Create casts ACollection to a TIdSocketHandles reference and sets the Port proerty to the value in the TIdSocketHandles.DefaultPort property for the collection.

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.