OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ReachabilityBase Class Referenceabstract

#include <reachable.hpp>

Inheritance diagram for openvpn::ReachabilityBase:
[legend]

Public Types

enum  Type { Internet , WiFi }
 
typedef ReachabilityInterface::Status Status
 

Public Member Functions

std::string to_string () const
 
std::string to_string (const SCNetworkReachabilityFlags f) const
 
Status status () const
 
SCNetworkReachabilityFlags flags () const
 
virtual Type vtype () const =0
 
virtual Status vstatus (const SCNetworkReachabilityFlags flags) const =0
 
virtual ~ReachabilityBase ()=default
 

Static Public Member Functions

static std::string render_type (Type type)
 
static std::string render_status (const Status status)
 
static std::string render_flags (const SCNetworkReachabilityFlags flags)
 

Public Attributes

CF::NetworkReachability reach
 

Detailed Description

Definition at line 86 of file reachable.hpp.

Member Typedef Documentation

◆ Status

Member Enumeration Documentation

◆ Type

Enumerator
Internet 
WiFi 

Definition at line 91 of file reachable.hpp.

Constructor & Destructor Documentation

◆ ~ReachabilityBase()

virtual openvpn::ReachabilityBase::~ReachabilityBase ( )
virtualdefault

Member Function Documentation

◆ flags()

SCNetworkReachabilityFlags openvpn::ReachabilityBase::flags ( ) const
inline

Definition at line 125 of file reachable.hpp.

Here is the caller graph for this function:

◆ render_flags()

static std::string openvpn::ReachabilityBase::render_flags ( const SCNetworkReachabilityFlags  flags)
inlinestatic

Definition at line 165 of file reachable.hpp.

Here is the caller graph for this function:

◆ render_status()

static std::string openvpn::ReachabilityBase::render_status ( const Status  status)
inlinestatic

Definition at line 150 of file reachable.hpp.

Here is the caller graph for this function:

◆ render_type()

static std::string openvpn::ReachabilityBase::render_type ( Type  type)
inlinestatic

Definition at line 137 of file reachable.hpp.

Here is the caller graph for this function:

◆ status()

Status openvpn::ReachabilityBase::status ( ) const
inline

Definition at line 116 of file reachable.hpp.

Here is the caller graph for this function:

◆ to_string() [1/2]

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

Definition at line 97 of file reachable.hpp.

Here is the caller graph for this function:

◆ to_string() [2/2]

std::string openvpn::ReachabilityBase::to_string ( const SCNetworkReachabilityFlags  f) const
inline

Definition at line 102 of file reachable.hpp.

◆ vstatus()

virtual Status openvpn::ReachabilityBase::vstatus ( const SCNetworkReachabilityFlags  flags) const
pure virtual

Implemented in openvpn::ReachabilityViaInternet, and openvpn::ReachabilityViaWiFi.

Here is the caller graph for this function:

◆ vtype()

virtual Type openvpn::ReachabilityBase::vtype ( ) const
pure virtual

Implemented in openvpn::ReachabilityViaInternet, and openvpn::ReachabilityViaWiFi.

Here is the caller graph for this function:

Member Data Documentation

◆ reach

CF::NetworkReachability openvpn::ReachabilityBase::reach

Definition at line 215 of file reachable.hpp.


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