mn_basic_endpoint.hpp
Go to the documentation of this file.
This abstract basic class represents an endpoint/socket address.
Definition: mn_basic_endpoint.hpp:43
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
basic_ip_endpoint(const self_type &pOther) noexcept
Construct a basic_ip_endpoint by copying another one.
Definition: mn_basic_endpoint.hpp:73
void set_port(const uint16_t &port)
Set a port number, between 0-9999.
Definition: mn_basic_endpoint.hpp:94
basic_ip_endpoint(const ip_type &ip, const uint16_t &port) noexcept
Construct a basic_ip_endpoint by giving ip address and port.
Definition: mn_basic_endpoint.hpp:67
bool operator==(const self_type &pOther)
Is the right basic_endpoint equel with this.
Definition: mn_basic_endpoint.hpp:124
uint16_t get_port()
Get the port number.
Definition: mn_basic_endpoint.hpp:80
bool operator!=(const self_type &pOther)
Is the right basic_endpoint not equel with this.
Definition: mn_basic_endpoint.hpp:132
bool is_multicast()
Is the host address a multicast address.
Definition: mn_basic_endpoint.hpp:104
self_type & operator=(const self_type &pOther)
Assigns another basic_ip_endpoint.
Definition: mn_basic_endpoint.hpp:116
virtual void swap(self_type &rhs) noexcept
Definition: mn_basic_endpoint.hpp:143
void set_host(const ip_type &ip)
Set a new the host IP address.
Definition: mn_basic_endpoint.hpp:99
bool operator<(const self_type &pOther) const
smaler as .. - odering
Definition: mn_basic_endpoint.hpp:138
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
address_family
Defines socket address types for creating.
Definition: mn_net_types.hpp:41
Definition: mn_allocator_typetraits.hpp:25