System.Net.Socket.TNetEndpoint.Create
Delphi
class function Create(const Name, Service: string; SocketType: TSocketType = TSocketType.TCP): TNetEndpoint; overload; static;
class function Create(const Address: Cardinal; const Port: Word): TNetEndpoint; overload; static;
class function Create(const B1, B2, B3, B4: Byte; const Port: Word): TNetEndpoint; overload; static;
class function Create(const Address: TIPAddress; const Service: string; SocketType: TSocketType = TSocketType.TCP): TNetEndpoint; overload; static;
class function Create(const Address: TIPAddress; const Port: Word): TNetEndpoint; overload; static;
class function Create(const Family: Word; const Name, Service: string; SocketType: TSocketType = TSocketType.TCP): TNetEndpoint; overload; static;
class function Create(const Family: Word; const Address: Cardinal; const Port: Word): TNetEndpoint; overload; static;
class function Create(const Family: Word; const B1, B2, B3, B4: Byte; const Port: Word): TNetEndpoint; overload; static;
class function Create(const Family: Word; const Address: TIPAddress; const Service: string; SocketType: TSocketType = TSocketType.TCP): TNetEndpoint; overload; static;
class function Create(const Family: Word; const Address: TIPAddress; const Port: Word): TNetEndpoint; overload; static;
class function Create(const Endpoint: sockaddr_in): TNetEndpoint; overload; inline; static;
C++
static TNetEndpoint __fastcall Create(const System::UnicodeString Name, const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0))/* overload */;
static TNetEndpoint __fastcall Create(const unsigned Address, const System::Word Port)/* overload */;
static TNetEndpoint __fastcall Create(const System::Byte B1, const System::Byte B2, const System::Byte B3, const System::Byte B4, const System::Word Port)/* overload */;
static TNetEndpoint __fastcall Create(const TIPAddress Address, const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0))/* overload */;
static TNetEndpoint __fastcall Create(const TIPAddress Address, const System::Word Port)/* overload */;
static TNetEndpoint __fastcall Create(const System::Word Family, const System::UnicodeString Name, const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0))/* overload */;
static TNetEndpoint __fastcall Create(const System::Word Family, const unsigned Address, const System::Word Port)/* overload */;
static TNetEndpoint __fastcall Create(const System::Word Family, const System::Byte B1, const System::Byte B2, const System::Byte B3, const System::Byte B4, const System::Word Port)/* overload */;
static TNetEndpoint __fastcall Create(const System::Word Family, const TIPAddress Address, const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0))/* overload */;
static TNetEndpoint __fastcall Create(const System::Word Family, const TIPAddress Address, const System::Word Port)/* overload */;
static TNetEndpoint __fastcall Create(const sockaddr_in &Endpoint)/* overload */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TNetEndpoint |
Beschreibung
Erstellt eine Instanz von TNetEndpoint.
Die folgenden Parameterkombinationen werden akzeptiert:
Family
(optional).Address
oderName
oderB1, B2, B3, B4
.Service
oderPort
.SocketType
(optional, kann nur angegeben werden, wenn der vorhergehende ParameterService
ist. Vorgabe ist TSocketType.TCP).
Beschreibung:
Family
ist die Adressfamilie der IP-Adresse.Address
ist die IP-Adresse, entweder eine Instanz von TIPAddress oder als Cardinal-Wert.Name
ist ein Domänenname.B1, B2, B3, B4
sind einzelne Oktetts einer IPv4-Adresse.Service
ist ein Dienstname.Port
ist eine Port-Nummer.SocketType
ist der Typ des Socket.