OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunWin::Dns< REG, NETAPI >::ActionApply Class Reference

#include <dns.hpp>

Inheritance diagram for openvpn::TunWin::Dns< REG, NETAPI >::ActionApply:
[legend]
Collaboration diagram for openvpn::TunWin::Dns< REG, NETAPI >::ActionApply:
[legend]

Public Member Functions

void execute (std::ostream &log) override
 Apply any modification to the DNS settings by signaling the resolver.
 
std::string to_string () const override
 Return the log message.
 
- Public Member Functions inherited from openvpn::Action
virtual Json::Value to_json () const
 
virtual ~Action ()=default
 
- 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

bool apply_dns_settings ()
 Signal the DNS resolver to reload its settings.
 
bool apply_gpol_nrtp_rules ()
 Signal the DNS resolver (and others potentially) to reload the NRTP rules group policy settings.
 
bool apply_gpol_nrtp_rules_32 ()
 Signal the DNS resolver (and others potentially) to reload the NRTP rules group policy settings on 32 bit Windows systems.
 
bool apply_gpol_nrtp_rules_64 ()
 Signal the DNS resolver (and others potentially) to reload the NRTP rules group policy settings on 64 bit Windows systems.
 

Additional Inherited Members

- Public Types inherited from openvpn::Action
typedef RCPtr< ActionPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 
- 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.
 
- Public Attributes inherited from openvpn::Action
std::string mark
 

Detailed Description

template<typename REG, typename NETAPI>
class openvpn::TunWin::Dns< REG, NETAPI >::ActionApply

Definition at line 492 of file dns.hpp.

Member Function Documentation

◆ apply_dns_settings()

template<typename REG , typename NETAPI >
bool openvpn::TunWin::Dns< REG, NETAPI >::ActionApply::apply_dns_settings ( )
inlineprivate

Signal the DNS resolver to reload its settings.

Returns
bool to indicate if the reload was initiated

Definition at line 529 of file dns.hpp.

Here is the caller graph for this function:

◆ apply_gpol_nrtp_rules()

template<typename REG , typename NETAPI >
bool openvpn::TunWin::Dns< REG, NETAPI >::ActionApply::apply_gpol_nrtp_rules ( )
inlineprivate

Signal the DNS resolver (and others potentially) to reload the NRTP rules group policy settings.

Returns
bool to indicate if the reload was initiated

Definition at line 572 of file dns.hpp.

Here is the caller graph for this function:

◆ apply_gpol_nrtp_rules_32()

template<typename REG , typename NETAPI >
bool openvpn::TunWin::Dns< REG, NETAPI >::ActionApply::apply_gpol_nrtp_rules_32 ( )
inlineprivate

Signal the DNS resolver (and others potentially) to reload the NRTP rules group policy settings on 32 bit Windows systems.

Returns
bool to indicate if the reload was initiated

Definition at line 587 of file dns.hpp.

Here is the caller graph for this function:

◆ apply_gpol_nrtp_rules_64()

template<typename REG , typename NETAPI >
bool openvpn::TunWin::Dns< REG, NETAPI >::ActionApply::apply_gpol_nrtp_rules_64 ( )
inlineprivate

Signal the DNS resolver (and others potentially) to reload the NRTP rules group policy settings on 64 bit Windows systems.

Returns
bool to indicate if the reload was initiated

Definition at line 620 of file dns.hpp.

Here is the caller graph for this function:

◆ execute()

template<typename REG , typename NETAPI >
void openvpn::TunWin::Dns< REG, NETAPI >::ActionApply::execute ( std::ostream &  log)
inlineoverridevirtual

Apply any modification to the DNS settings by signaling the resolver.

Parameters
logwhere the log message goes

Implements openvpn::Action.

Definition at line 500 of file dns.hpp.

◆ to_string()

template<typename REG , typename NETAPI >
std::string openvpn::TunWin::Dns< REG, NETAPI >::ActionApply::to_string ( ) const
inlineoverridevirtual

Return the log message.

Returns
std::string

Implements openvpn::Action.

Definition at line 518 of file dns.hpp.

Here is the caller graph for this function:

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