#include <ipv4.hpp>
Definition at line 38 of file ipv4.hpp.
 
◆ base_type
◆ signed_base_type
◆ anonymous enum
◆ all_ones()
  
  
      
        
          | bool openvpn::IPv4::Addr::all_ones  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ all_zeros()
  
  
      
        
          | bool openvpn::IPv4::Addr::all_zeros  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ arpa()
  
  
      
        
          | std::string openvpn::IPv4::Addr::arpa  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ defined()
  
  
      
        
          | static constexpr bool openvpn::IPv4::Addr::defined  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticconstexpr   | 
  
 
 
◆ extent_from_netmask()
  
  
      
        
          | Addr openvpn::IPv4::Addr::extent_from_netmask  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ extent_from_netmask_uint32()
  
  
      
        
          | std::uint32_t openvpn::IPv4::Addr::extent_from_netmask_uint32  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ from_addr()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_addr  | 
          ( | 
          const Addr &  | 
          addr | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_asio()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_asio  | 
          ( | 
          const openvpn_io::ip::address_v4 &  | 
          asio_addr | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_bytes()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_bytes  | 
          ( | 
          const unsigned char *  | 
          bytes | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_bytes_net()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_bytes_net  | 
          ( | 
          const unsigned char *  | 
          bytes | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_hex()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_hex  | 
          ( | 
          const std::string &  | 
          s | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_in_addr()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_in_addr  | 
          ( | 
          const in_addr *  | 
          in4 | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_long()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_long  | 
          ( | 
          long  | 
          ul | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_one()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_one  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_sockaddr()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_sockaddr  | 
          ( | 
          const sockaddr_in *  | 
          sa | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_string() [1/2]
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_string  | 
          ( | 
          const std::string &  | 
          ipstr | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_string() [2/2]
template<typename TITLE > 
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_string  | 
          ( | 
          const std::string &  | 
          ipstr,  | 
         
        
           | 
           | 
          const TITLE &  | 
          title  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_uint32()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_uint32  | 
          ( | 
          const base_type  | 
          addr | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_uint32_net()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_uint32_net  | 
          ( | 
          const base_type  | 
          addr | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_ulong()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_ulong  | 
          ( | 
          unsigned long  | 
          ul | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_zero()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_zero  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ from_zero_complement()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::from_zero_complement  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ hash()
template<typename HASH > 
  
  
      
        
          | void openvpn::IPv4::Addr::hash  | 
          ( | 
          HASH &  | 
          h | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ host_len()
  
  
      
        
          | unsigned int openvpn::IPv4::Addr::host_len  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ ip_version()
  
  
      
        
          | static constexpr int openvpn::IPv4::Addr::ip_version  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticconstexpr   | 
  
 
 
◆ is_loopback()
  
  
      
        
          | bool openvpn::IPv4::Addr::is_loopback  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ negate()
  
  
      
        
          | void openvpn::IPv4::Addr::negate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ netmask_from_prefix_len()
  
  
      
        
          | static Addr openvpn::IPv4::Addr::netmask_from_prefix_len  | 
          ( | 
          const unsigned int  | 
          prefix_len | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ netmask_from_this_as_extent()
  
  
      
        
          | Addr openvpn::IPv4::Addr::netmask_from_this_as_extent  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ network_addr()
  
  
      
        
          | Addr openvpn::IPv4::Addr::network_addr  | 
          ( | 
          const unsigned int  | 
          prefix_len | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ one()
  
  
      
        
          | void openvpn::IPv4::Addr::one  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator!=()
  
  
      
        
          | bool openvpn::IPv4::Addr::operator!=  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator%()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator%  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator&()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator&  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator*()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator*  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [1/2]
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator+  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+() [2/2]
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator+  | 
          ( | 
          const long  | 
          delta | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator++()
  
  
      
        
          | Addr & openvpn::IPv4::Addr::operator++  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator+=()
  
  
      
        
          | Addr & openvpn::IPv4::Addr::operator+=  | 
          ( | 
          const long  | 
          delta | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator-() [1/2]
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator-  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator-() [2/2]
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator-  | 
          ( | 
          const long  | 
          delta | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator-=()
  
  
      
        
          | Addr & openvpn::IPv4::Addr::operator-=  | 
          ( | 
          const long  | 
          delta | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator/()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator/  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator<()
  
  
      
        
          | bool openvpn::IPv4::Addr::operator<  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator<<()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator<<  | 
          ( | 
          const unsigned int  | 
          shift | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator<=()
  
  
      
        
          | bool openvpn::IPv4::Addr::operator<=  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator==()
  
  
      
        
          | bool openvpn::IPv4::Addr::operator==  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator>()
  
  
      
        
          | bool openvpn::IPv4::Addr::operator>  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator>=()
  
  
      
        
          | bool openvpn::IPv4::Addr::operator>=  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator>>()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator>>  | 
          ( | 
          const unsigned int  | 
          shift | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator|()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator|  | 
          ( | 
          const Addr &  | 
          other | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator~()
  
  
      
        
          | Addr openvpn::IPv4::Addr::operator~  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ prefix_len()
  
  
      
        
          | unsigned int openvpn::IPv4::Addr::prefix_len  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ prefix_len_32()
  
  
      
        
          | static int openvpn::IPv4::Addr::prefix_len_32  | 
          ( | 
          const std::uint32_t  | 
          addr | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ prefix_len_nothrow()
  
  
      
        
          | int openvpn::IPv4::Addr::prefix_len_nothrow  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ prefix_len_to_netmask()
  
  
      
        
          | static base_type openvpn::IPv4::Addr::prefix_len_to_netmask  | 
          ( | 
          const unsigned int  | 
          prefix_len | ) | 
           | 
         
       
   | 
  
inlinestaticprivate   | 
  
 
 
◆ prefix_len_to_netmask_unchecked()
  
  
      
        
          | static base_type openvpn::IPv4::Addr::prefix_len_to_netmask_unchecked  | 
          ( | 
          const unsigned int  | 
          prefix_len | ) | 
           | 
         
       
   | 
  
inlinestaticprivatenoexcept   | 
  
 
 
◆ size()
  
  
      
        
          | static constexpr unsigned int openvpn::IPv4::Addr::size  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticconstexpr   | 
  
 
 
◆ specified()
  
  
      
        
          | bool openvpn::IPv4::Addr::specified  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_asio()
  
  
      
        
          | openvpn_io::ip::address_v4 openvpn::IPv4::Addr::to_asio  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_byte_string()
  
  
      
        
          | void openvpn::IPv4::Addr::to_byte_string  | 
          ( | 
          unsigned char *  | 
          bytestr | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_hex()
  
  
      
        
          | std::string openvpn::IPv4::Addr::to_hex  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_in_addr()
  
  
      
        
          | in_addr openvpn::IPv4::Addr::to_in_addr  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_long()
  
  
      
        
          | long openvpn::IPv4::Addr::to_long  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_sockaddr()
  
  
      
        
          | sockaddr_in openvpn::IPv4::Addr::to_sockaddr  | 
          ( | 
          const unsigned short  | 
          port = 0 | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_string()
  
  
      
        
          | std::string openvpn::IPv4::Addr::to_string  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_uint32()
  
  
      
        
          | std::uint32_t openvpn::IPv4::Addr::to_uint32  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_uint32_net()
  
  
      
        
          | std::uint32_t openvpn::IPv4::Addr::to_uint32_net  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ to_ulong()
  
  
      
        
          | unsigned long openvpn::IPv4::Addr::to_ulong  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ unspecified()
  
  
      
        
          | bool openvpn::IPv4::Addr::unspecified  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ zero()
  
  
      
        
          | void openvpn::IPv4::Addr::zero  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ zero_complement()
  
  
      
        
          | void openvpn::IPv4::Addr::zero_complement  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ IP::Addr
◆ addr
◆ bytes
      
        
          | unsigned char openvpn::IPv4::Addr::bytes[4] | 
        
      
 
 
◆ [union]
      
        
          | union  { ... }  openvpn::IPv4::Addr::u | 
        
      
 
 
The documentation for this class was generated from the following file: