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 */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TIPAddress |
Description
Creates an instance of TIPAddress.
The accepted parameters need to be one of the following:
Name
: A String that represents a domain name.Address
: An IPv4 address.B1
,B2
,B3
,B4
: Individual octets of an IPv4 address.Address
,Mask
: Both parameters are of type TIPAddress. The returned TIPAddress is suitable for use as a UDP datagram broadcast to the local subnet.Address
: The returned TIPAddress is structured according to the platform socket api type.