mn_basic_ip4_endpoint.hpp
Go to the documentation of this file.
22 #define MNNET_IPENDPOINT4_BROADCAST(PORT) mn::net::basic_ip4_endpoint(MNNET_IPV4_ADDRESS_BROADCAST, PORT)
24 #define MNNET_IPENDPOINT4_LOOPBACK(PORT) mn::net::basic_ip4_endpoint(MNNET_IPV4_ADDRESS_LOOPBACK, PORT)
36 class basic_ip4_endpoint : public basic_ip_endpoint<basic_ip4_address, address_family::inet_v4> {
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_ip4_address.hpp:38
Definition: mn_basic_ip4_endpoint.hpp:36
basic_ip4_endpoint(const uint16_t &port=0) noexcept
Definition: mn_basic_ip4_endpoint.cpp:27
basic_ip4_address get_ip() MN_DEPRECATED
Get the host IP address.
Definition: mn_basic_ip4_endpoint.hpp:90
basic_endpoint * get_copy() override
Get a copy from this.
Definition: mn_basic_ip4_endpoint.cpp:47
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
Definition: mn_allocator_typetraits.hpp:25