Represents a network endpoint as a host name or a string representation of an IP address and a port number.
Public Constructors | |
| dns_end_point (const xtd::string &host, xtd::uint16 port) | |
| Initializes a new instance of the xtd::net::dns_end_point class with the host name or string representation of an IP address and a port number. | |
| dns_end_point (const xtd::string &host, xtd::uint16 port, sockets::address_family address_family) | |
| Initializes a new instance of the xtd::net::dns_end_point class with the host name or string representation of an IP address, a port number, and an address family. | |
Public Properties | |
| auto | host () const noexcept -> const xtd::string & |
| Gets the host name or string representation of the Internet Protocol (IP) address of the host. | |
| auto | port () const noexcept -> xtd::uint16 |
| Gets the port number of the endpoint. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const dns_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 | 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. | |
| virtual auto | create (const xtd::net::socket_address &socket_address) const -> xtd::uptr< xtd::net::end_point > |
| Creates an xtd::net::end_point instance from a socket_address instance. | |
| virtual auto | serialize () const -> xtd::net::socket_address |
| Serializes endpoint information into a socket_address instance. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns a string that represents the current object. | |
| 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::dns_end_point::dns_end_point | ( | const xtd::string & | host, |
| xtd::uint16 | port ) |
Initializes a new instance of the xtd::net::dns_end_point class with the host name or string representation of an IP address and a port number.
| host | The host name or a string representation of the IP address. |
| port | The port number associated with the address, or 0 to specify any available port. port is in host order. |
| xtd::argument_exception | The host parameter contains an empty string. |
| xtd::net::dns_end_point::dns_end_point | ( | const xtd::string & | host, |
| xtd::uint16 | port, | ||
| sockets::address_family | address_family ) |
Initializes a new instance of the xtd::net::dns_end_point class with the host name or string representation of an IP address, a port number, and an address family.
| host | The host name or a string representation of the IP address. |
| port | The port number associated with the address, or 0 to specify any available port. port is in host order. |
| address_family | One of the xtd::net::sockets::address_family values. |
| xtd::argument_exception | The host parameter contains an empty string. |
|
nodiscardnoexcept |
Gets the host name or string representation of the Internet Protocol (IP) address of the host.
|
nodiscardnoexcept |
Gets the port number of the endpoint.
|
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::dns_end_point >.
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
nodiscardoverridevirtualnoexcept |
Returns a string that represents the current object.
Reimplemented from xtd::object.