ipaddress 1.1.0
Loading...
Searching...
No Matches
ipv6_network_base Class Reference

Base class for IPv6 network address manipulation. More...

#include <ipv6-network.hpp>

Inheritance diagram for ipv6_network_base:

Public Types

using ip_address_type = ipv6_address
 Alias for the IPv6 address type used within the class.
 

Public Member Functions

constexpr inline bool is_site_local () const noexcept
 Checks if the IPv6 network is site-local.
 
constexpr inline ip_version version () const noexcept
 Retrieves the IP version of the address.
 
constexpr inline size_t size () const noexcept
 Retrieves the size of the IPv6 address.
 

Detailed Description

Base class for IPv6 network address manipulation.

The ipv6_network_base class provides foundational functionality for IPv6 network address manipulation by extending the base_v6 class.

Member Function Documentation

◆ is_site_local()

constexpr inline bool is_site_local ( ) const
inlinenoexcept

Checks if the IPv6 network is site-local.

This method determines if both the network address and the broadcast address of the IPv6 network are site-local, which are addresses used within a particular organization's intranet and are not routable on the global internet.

Returns
A boolean value indicating whether the network is site-local.

◆ version()

constexpr inline ip_version version ( ) const
inlinenoexceptinherited

Retrieves the IP version of the address.

Returns
The IP version enumeration value for IPv6.

◆ size()

constexpr inline size_t size ( ) const
inlinenoexceptinherited

Retrieves the size of the IPv6 address.

Returns
The size of the IPv6 address in bytes.

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