System.Net.Socket.TNetEndpoint
Delphi
TNetEndpoint = record
C++
struct DECLSPEC_DRECORD TNetEndpoint
{
private:
sockaddr_in FEndPoint;
TIPAddress __fastcall GetAddress();
System::Word __fastcall GetFamily();
System::Word __fastcall GetPort();
void __fastcall SetAddress(const TIPAddress Address)/* overload */;
void __fastcall SetFamily(const System::Word Family);
void __fastcall SetPort(const System::Word Port)/* overload */;
static void __fastcall SetSize(TNetEndpoint &Endpoint);
public:
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 */;
__fastcall operator sockaddr_in();
__fastcall operator sockaddr();
static TNetEndpoint __fastcall _op_Implicit(const sockaddr_in &Endpoint);
static TNetEndpoint __fastcall _op_Implicit(const sockaddr &Endpoint);
static System::Word __fastcall LookupService(const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0));
void __fastcall SetAddress(const System::UnicodeString Address)/* overload */;
void __fastcall SetAddress(const unsigned Address)/* overload */;
void __fastcall SetAddress(const System::Byte B1, const System::Byte B2, const System::Byte B3, const System::Byte B4)/* overload */;
void __fastcall SetPort(const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0))/* overload */;
__property TIPAddress Address = {read=GetAddress, write=SetAddress};
__property System::Word Family = {read=GetFamily, write=SetFamily};
__property System::Word Port = {read=GetPort, write=SetPort};
TNetEndpoint& operator =(const sockaddr_in &Endpoint) { *this = TNetEndpoint::_op_Implicit(Endpoint); return *this; }
TNetEndpoint& operator =(const sockaddr &Endpoint) { *this = TNetEndpoint::_op_Implicit(Endpoint); return *this; }
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | System.Net.Socket |
Description
Represents the combination of an IP address and a port.