System.Net.Socket.TIPAddress.Create
Delphi
class function Create(const Name: string): TIPAddress; overload; static;
class function Create(const Address: Cardinal): TIPAddress; overload; static;
class function Create(const B1, B2, B3, B4: Byte): TIPAddress; overload; static;
class function Create(const Address: TIPAddress; Mask: TIPAddress): TIPAddress; overload; static;
class function Create(const Address: in_addr): TIPAddress; overload; static;
C++
static TIPAddress __fastcall Create(const System::UnicodeString Name)/* overload */;
static TIPAddress __fastcall Create(const unsigned Address)/* overload */;
static TIPAddress __fastcall Create(const System::Byte B1, const System::Byte B2, const System::Byte B3, const System::Byte B4)/* overload */;
static TIPAddress __fastcall Create(const TIPAddress Address, TIPAddress Mask)/* overload */;
static TIPAddress __fastcall Create(const in_addr Address)/* overload */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TIPAddress |
Beschreibung
Erstellt eine Instanz von TIPAddress.
Folgende Parameter werden akzeptiert:
Name
: Ein String, der einen Domänennamen darstellt.Address
: Eine IPv4-Adresse.B1
,B2
,B3
,B4
: Einzelne Oktetts einer IPv4-Adresse.Address
,Mask
: Beide Parameter haben den Typ TIPAddress. Die zurückgegebene TIPAddress ist für die Verwendung als UDP-Datengramm-Broadcast an das lokale Subnetz geeignet.Address
: Die zurückgegebene TIPAddress ist entsprechend dem Typ der Socket-API der Plattform strukturiert.