#include <ip_end_point.h>
Represents a network endpoint as an IP address and a port number.
- Namespace
- xtd::net
- Library
- xtd.core
Inherits xtd::net::end_point.
|
static constexpr const uint16_t | 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. More...
|
|
static constexpr const uint16_t | 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. More...
|
|
◆ ip_end_point() [1/2]
xtd::net::ip_end_point::ip_end_point |
( |
uint32_t |
address, |
|
|
uint16_t |
port |
|
) |
| |
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.
◆ create()
◆ port() [1/2]
uint16_t xtd::net::ip_end_point::port |
( |
| ) |
const |
|
noexcept |
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]
ip_end_point& xtd::net::ip_end_point::port |
( |
uint16_t |
value | ) |
|
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. |
◆ serialize()
◆ to_string()
Returns a string that represents the current object.
- Returns
- string A string that represents the current object.
Reimplemented from xtd::net::end_point.
◆ max_port
constexpr const uint16_t xtd::net::ip_end_point::max_port |
|
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.
◆ min_port
constexpr const uint16_t xtd::net::ip_end_point::min_port |
|
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.
The documentation for this class was generated from the following file: