System::Net::IPEndPoint class

IPEndPoint class

Represents a network endpoint that contains an IP address and a port. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class IPEndPoint : public System::Net::EndPoint

Methods

MethodDescription
Create(System::SharedPtr<SocketAddress>) overrideCreate a new instance of the EndPoint class using the specified socket address.
Equals(System::SharedPtr<Object>) overrideCompares objects using C# Object.Equals semantics.
get_Address()Gets the endpoint address.
get_AddressFamily() overrideRTTI information.
get_Port()Gets the port number.
GetHashCode() const overrideAnalog of C# Object.GetHashCode() method. Enables hashing of custom objects.
GetImpl() const overrideReturns a pointer to implementation.
IPEndPoint(int64_t, int32_t)Constructs a new instance.
IPEndPoint(System::SharedPtr<IPAddress>, int32_t)Constructs a new instance.
set_Address(System::SharedPtr<IPAddress>)Sets the endpoint address.
set_Port(int32_t)Sets the port number.
ToString() const overrideAnalog of C# Object.ToString() method. Enables converting custom objects to string.

Fields

FieldDescription
static AnyThe endpoint for any IPv4 address and any port.
static AnyPortA value that indicates if any port can be used.
static IPv6AnyThe endpoint for any IPv6 address and any port.
static MaxPortThe maximum port number.
static MinPortRTTI information.

See Also