API:System.Net.Socket.TSocket.Create
Delphi
constructor Create(ASocket: TSocketHandle; const AAddr: sockaddr_in; const AEncoding: TEncoding); overload;
constructor Create(ASockType: TSocketType; const AEncoding: TEncoding = nil); overload;
C++
__fastcall TSocket(NativeUInt ASocket, const sockaddr_in &AAddr, System::Sysutils::TEncoding* const AEncoding)/* overload */;
__fastcall TSocket(TSocketType ASockType, System::Sysutils::TEncoding* const AEncoding)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Constructs an object and initializes its data before the object is first used.
System.Net.Socket.TSocket.Create inherits from System.TObject.Create. All content below this line refers to System.TObject.Create.
Constructs an object and initializes its data before the object is first used.
Create constructs an object. The purpose, size, and behavior of objects differ greatly. The Create constructor defined by TObject allocates memory but does not initialize data.
Descendant objects usually define a constructor that creates the particular kind of object and initializes its data.
Note: If an exception escapes from a constructor, the object's destructor is called to clean up the failed instance.