Represents a network endpoint as an IP address and a port number.
- Definition
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Identifies a network address. This is an abstract class.
Definition end_point.hpp:27
ip_end_point(xtd::uint32 address, xtd::uint16 port)
Initializes a new instance of the xtd::net::ip_end_point class.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
- Header
#include <xtd/net/ip_end_point>
- Namespace
- xtd::net
- Library
- xtd.core
|
| 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.
|
| |
|
| 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 type_object | get_type () const noexcept |
| | Gets the type of the current instance.
|
| |
| template<class object_t> |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| | Creates a shallow copy of the current object.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | Determines whether the specified object instances are considered equal.
|
| |
| template<class object_a_t, class object_b_t> |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| | 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.
|
| |
◆ ip_end_point() [1/2]
Initializes a new instance of the xtd::net::ip_end_point class.
- Parameters
-
| 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. |
◆ ip_end_point() [2/2]
Initializes a new instance of the xtd::net::ip_end_point class.
- Parameters
-
| 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. |
◆ address() [1/2]
Gets the IP address of the endpoint.
- Returns
- An xtd::net::ip_address instance containing the IP address of the endpoint.
◆ address() [2/2]
Sets the IP address of the endpoint.
- Parameters
-
| value | An ip_address instance containing the IP address of the endpoint. |
- Returns
- The current instance.
◆ port() [1/2]
| auto xtd::net::ip_end_point::port |
( |
| ) |
const -> xtd::uint16 |
|
nodiscardnoexcept |
Gets or sets the port number of the endpoint.
- Parameters
-
| value | An integer value in the range min_port to max_port indicating the port number of the endpoint. |
◆ port() [2/2]
Sets the port number of the endpoint.
- Parameters
-
| value | An integer value in the range min_port to max_port indicating the port number of the endpoint. |
◆ create()
◆ equals() [1/2]
| auto xtd::net::ip_end_point::equals |
( |
const object & | obj | ) |
const -> bool |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
| obj | The object to compare with the current object. |
- Returns
true if the specified object is equal to the current object. otherwise, false.
Reimplemented from xtd::object.
◆ equals() [2/2]
| auto xtd::net::ip_end_point::equals |
( |
const ip_end_point & | other | ) |
const -> bool |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
| other | The object to compare with the current object. |
- Returns
true if the specified object is equal to the current object. otherwise, false.
Implements xtd::iequatable< xtd::net::ip_end_point >.
◆ get_hash_code()
| auto xtd::net::ip_end_point::get_hash_code |
( |
| ) |
const -> xtd::size |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
- Returns
- A hash code for the current object.
Reimplemented from xtd::object.
◆ serialize()
◆ to_string()
| auto xtd::net::ip_end_point::to_string |
( |
| ) |
const -> xtd::string |
|
nodiscardoverridevirtualnoexcept |
Returns a string that represents the current object.
- Returns
- string A string that represents the current object.
Reimplemented from xtd::net::end_point.
◆ 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.
◆ 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.
The documentation for this class was generated from the following file: