Represents a network endpoint as an IP address and a port number.
Public Fields | |
| static constexpr xtd::uint16 | min_port |
| Specifies the minimum value that can be assigned to the port property. The min_port value is set to 0x0000. This field is read-only. | |
| static constexpr xtd::uint16 | max_port |
| Specifies the maximum value that can be assigned to the port property. The max_port value is set to 0xFFFF. This field is read-only. | |
Public Constructors | |
| ip_end_point (xtd::uint32 address, xtd::uint16 port) | |
| Initializes a new instance of the xtd::net::ip_end_point class. | |
| ip_end_point (const xtd::net::ip_address &address, xtd::uint16 port) | |
| Initializes a new instance of the xtd::net::ip_end_point class. | |
Public Properties | |
| auto | address () const noexcept -> const xtd::net::ip_address & |
| Gets the IP address of the endpoint. | |
| auto | address (const xtd::net::ip_address &value) -> ip_end_point & |
| Sets the IP address of the endpoint. | |
| auto | port () const noexcept -> xtd::uint16 |
| Gets or sets the port number of the endpoint. | |
| auto | port (xtd::uint16 value) -> ip_end_point & |
| Sets the port number of the endpoint. | |
Public Methods | |
| auto | create (const xtd::net::socket_address &socket_address) const -> xtd::uptr< end_point > override |
| Creates an xtd::net::end_point instance from a xtd::net::socket_address instance. | |
| auto | equals (const object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const ip_end_point &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | serialize () const -> xtd::net::socket_address override |
| Serializes endpoint information into a socket_address instance. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns a string that represents the current object. | |
Additional Inherited Members | |
| auto | address_family () const noexcept -> xtd::net::sockets::address_family |
| Gets the address family to which the endpoint belongs. | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| end_point (xtd::net::sockets::address_family address_family) | |
| Initializes a new instance of the xtd::net::end_point class. | |
| xtd::net::ip_end_point::ip_end_point | ( | xtd::uint32 | address, |
| xtd::uint16 | port ) |
Initializes a new instance of the xtd::net::ip_end_point class.
| address | The IP address of the Internet host. |
| port | The port number associated with the address, or 0 to specify any available port. port is in host order. |
| xtd::net::ip_end_point::ip_end_point | ( | const xtd::net::ip_address & | address, |
| xtd::uint16 | port ) |
Initializes a new instance of the xtd::net::ip_end_point class.
| address | An xtd::net::ip_address. |
| port | The port number associated with the address, or 0 to specify any available port. port is in host order. |
|
nodiscardnoexcept |
Gets the IP address of the endpoint.
| auto xtd::net::ip_end_point::address | ( | const xtd::net::ip_address & | value | ) | -> ip_end_point & |
Sets the IP address of the endpoint.
| value | An ip_address instance containing the IP address of the endpoint. |
|
nodiscardnoexcept |
Gets or sets the port number of the endpoint.
| value | An integer value in the range min_port to max_port indicating the port number of the endpoint. |
| auto xtd::net::ip_end_point::port | ( | xtd::uint16 | value | ) | -> ip_end_point & |
Sets the port number of the endpoint.
| value | An integer value in the range min_port to max_port indicating the port number of the endpoint. |
|
nodiscardoverridevirtual |
Creates an xtd::net::end_point instance from a xtd::net::socket_address instance.
| socket_address | The socket address that serves as the endpoint for a connection. |
| xtd::not_supported_exception | Any attempt is made to access the method when the method is not overridden in a descendant class. |
Reimplemented from xtd::net::end_point.
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
Implements xtd::iequatable< xtd::net::ip_end_point >.
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
nodiscardoverridevirtual |
Serializes endpoint information into a socket_address instance.
Reimplemented from xtd::net::end_point.
|
nodiscardoverridevirtualnoexcept |
Returns a string that represents the current object.
Reimplemented from xtd::net::end_point.
|
staticconstexpr |
Specifies the minimum value that can be assigned to the port property. The min_port value is set to 0x0000. This field is read-only.
|
staticconstexpr |
Specifies the maximum value that can be assigned to the port property. The max_port value is set to 0xFFFF. This field is read-only.