Topic Path: Symbol Reference > Classes > TIdSocketHandle Class > TIdSocketHandle Methods > Create Constructor
TIdSocketHandle.Create Constructor

Constructor for the object instance.

constructor Create(
    ACollection: TIdCollection
); override;
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: 




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.

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