mn::net::basic_ip6_endpoint Class Reference

This class represents an IPv6 endpoint/socket address. More...

#include <mn_basic_ip6_endpoint.hpp>

+ Inheritance diagram for mn::net::basic_ip6_endpoint:
+ Collaboration diagram for mn::net::basic_ip6_endpoint:

Public Member Functions

 basic_ip6_endpoint (const uint16_t &port=0) noexcept
 
 basic_ip6_endpoint (const basic_ip6_address &ip, const uint16_t &port) noexcept
 
 basic_ip6_endpoint (const basic_ip6_endpoint &pOther) noexcept
 
basic_endpointget_copy () override
 Get a copy from this. More...
 
basic_ip6_address get_ip () __attribute__((deprecated))
 Get the host IP address. More...
 
- Public Member Functions inherited from mn::net::basic_ip_endpoint< basic_ip6_address, address_family::inet_v6 >
 basic_ip_endpoint (const ip_type &ip, const uint16_t &port) noexcept
 Construct a basic_ip_endpoint by giving ip address and port. More...
 
 basic_ip_endpoint (const self_type &pOther) noexcept
 Construct a basic_ip_endpoint by copying another one. More...
 
uint16_t get_port ()
 Get the port number. More...
 
ip_type get_host ()
 Get the host IP address. More...
 
address_family get_famile ()
 Get the address family of the address. More...
 
void set_port (const uint16_t &port)
 Set a port number, between 0-9999. More...
 
void set_host (const ip_type &ip)
 Set a new the host IP address. More...
 
bool is_multicast ()
 Is the host address a multicast address. More...
 
bool is_loopback ()
 Is the host address a loopaddress. More...
 
self_typeoperator= (const self_type &pOther)
 Assigns another basic_ip_endpoint. More...
 
bool operator== (const self_type &pOther)
 Is the right basic_endpoint equel with this. More...
 
bool operator!= (const self_type &pOther)
 Is the right basic_endpoint not equel with this. More...
 
bool operator< (const self_type &pOther) const
 smaler as .. - odering More...
 
virtual void swap (self_type &rhs) noexcept
 

Private Types

using base_type = basic_ip_endpoint< basic_ip6_address, address_family::inet_v6 >
 

Additional Inherited Members

- Public Types inherited from mn::net::basic_ip_endpoint< basic_ip6_address, address_family::inet_v6 >
using ip_type = basic_ip6_address
 
using self_type = basic_ip_endpoint< basic_ip6_address, TAF >
 
- Protected Attributes inherited from mn::net::basic_ip_endpoint< basic_ip6_address, address_family::inet_v6 >
ip_type m_ipAdress
 
uint16_t m_iPort
 

Detailed Description

This class represents an IPv6 endpoint/socket address.

Member Typedef Documentation

◆ base_type

Constructor & Destructor Documentation

◆ basic_ip6_endpoint() [1/3]

mn::net::basic_ip6_endpoint::basic_ip6_endpoint ( const uint16_t &  port = 0)
noexcept

◆ basic_ip6_endpoint() [2/3]

mn::net::basic_ip6_endpoint::basic_ip6_endpoint ( const basic_ip6_address ip,
const uint16_t &  port 
)
noexcept

◆ basic_ip6_endpoint() [3/3]

mn::net::basic_ip6_endpoint::basic_ip6_endpoint ( const basic_ip6_endpoint pOther)
noexcept

Member Function Documentation

◆ get_copy()

basic_endpoint * mn::net::basic_ip6_endpoint::get_copy ( )
overridevirtual

Get a copy from this.

Returns
The copy of this.

Implements mn::net::basic_endpoint.

◆ get_ip()

basic_ip6_address mn::net::basic_ip6_endpoint::get_ip ( )
inline

Get the host IP address.

Returns
The host IP address.
Note
deprecated

The documentation for this class was generated from the following files: