OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::MacDNS Class Reference

#include <macdns.hpp>

Inheritance diagram for openvpn::MacDNS:
[legend]
Collaboration diagram for openvpn::MacDNS:
[legend]

Classes

class  Config
 
class  Info
 

Public Types

typedef RCPtr< MacDNSPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 OPENVPN_EXCEPTION (macdns_error)
 
 MacDNS (const std::string &sname_arg)
 
void flush_cache ()
 
bool signal_network_reconfiguration ()
 
bool setdns (const Config &config)
 
bool resetdns ()
 
std::string to_string () const
 
CF::Array dskey_array () const
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Private Member Functions

void interface_change_cleanup (Info *info)
 
bool reset_primary_dns (Info *info)
 
CF::DynamicStore ds_create () const
 

Private Attributes

const std::string sname
 
Mac::Version ver
 
Info::Ptr prev
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 33 of file macdns.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 38 of file macdns.hpp.

Constructor & Destructor Documentation

◆ MacDNS()

openvpn::MacDNS::MacDNS ( const std::string &  sname_arg)
inline

Definition at line 143 of file macdns.hpp.

Member Function Documentation

◆ ds_create()

CF::DynamicStore openvpn::MacDNS::ds_create ( ) const
inlineprivate

Definition at line 397 of file macdns.hpp.

Here is the caller graph for this function:

◆ dskey_array()

CF::Array openvpn::MacDNS::dskey_array ( ) const
inline

Definition at line 309 of file macdns.hpp.

Here is the caller graph for this function:

◆ flush_cache()

void openvpn::MacDNS::flush_cache ( )
inline

Definition at line 148 of file macdns.hpp.

Here is the caller graph for this function:

◆ interface_change_cleanup()

void openvpn::MacDNS::interface_change_cleanup ( Info info)
inlineprivate

Definition at line 322 of file macdns.hpp.

Here is the caller graph for this function:

◆ OPENVPN_EXCEPTION()

openvpn::MacDNS::OPENVPN_EXCEPTION ( macdns_error  )

◆ reset_primary_dns()

bool openvpn::MacDNS::reset_primary_dns ( Info info)
inlineprivate

Definition at line 331 of file macdns.hpp.

Here is the caller graph for this function:

◆ resetdns()

bool openvpn::MacDNS::resetdns ( )
inline

Definition at line 269 of file macdns.hpp.

Here is the caller graph for this function:

◆ setdns()

bool openvpn::MacDNS::setdns ( const Config config)
inline

Definition at line 177 of file macdns.hpp.

Here is the caller graph for this function:

◆ signal_network_reconfiguration()

bool openvpn::MacDNS::signal_network_reconfiguration ( )
inline

Definition at line 172 of file macdns.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::MacDNS::to_string ( ) const
inline

Definition at line 302 of file macdns.hpp.

Member Data Documentation

◆ prev

Info::Ptr openvpn::MacDNS::prev
private

Definition at line 404 of file macdns.hpp.

◆ sname

const std::string openvpn::MacDNS::sname
private

Definition at line 402 of file macdns.hpp.

◆ ver

Mac::Version openvpn::MacDNS::ver
private

Definition at line 403 of file macdns.hpp.


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