mn_basic_ip6_endpoint.hpp
Go to the documentation of this file.
26 #define MNNET_IPENDPOINT6_LOOPBACK(PORT) mn::net::basic_ip6_endpoint(MNNET_IPV6_ADDRESS_LOOPBACK, PORT)
41 class basic_ip6_endpoint : public basic_ip_endpoint<basic_ip6_address, address_family::inet_v6> {
This abstract basic class represents an endpoint/socket address.
Definition: mn_basic_endpoint.hpp:43
This class represents an internet (IP) version 6 host address.
Definition: mn_basic_ip6_address.hpp:49
This class represents an IPv6 endpoint/socket address.
Definition: mn_basic_ip6_endpoint.hpp:41
basic_endpoint * get_copy() override
Get a copy from this.
Definition: mn_basic_ip6_endpoint.cpp:47
basic_ip6_address get_ip() __attribute__((deprecated))
Get the host IP address.
Definition: mn_basic_ip6_endpoint.hpp:95
basic_ip6_endpoint(const uint16_t &port=0) noexcept
Definition: mn_basic_ip6_endpoint.cpp:29
This template basic class represents an ip endpoint/socket address.
Definition: mn_basic_endpoint.hpp:59
address_family get_famile()
Get the address family of the address.
Definition: mn_basic_endpoint.hpp:90
void set_port(const uint16_t &port)
Set a port number, between 0-9999.
Definition: mn_basic_endpoint.hpp:94
uint16_t get_port()
Get the port number.
Definition: mn_basic_endpoint.hpp:80
bool is_multicast()
Is the host address a multicast address.
Definition: mn_basic_endpoint.hpp:104
virtual void swap(self_type &rhs) noexcept
Definition: mn_basic_endpoint.hpp:143
ip_type get_host()
Get the host IP address.
Definition: mn_basic_endpoint.hpp:85
bool is_loopback()
Is the host address a loopaddress.
Definition: mn_basic_endpoint.hpp:109
struct __attribute__((aligned(1))) aligned1
Definition: mn_alignment.hpp:40
Definition: mn_allocator_typetraits.hpp:25