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

#include <reachable.hpp>

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

Public Member Functions

 Reachability (const bool enable_internet, const bool enable_wifi)
 
bool reachableViaWiFi () const
 
bool reachableViaCellular () const
 
Status reachable () const override
 
bool reachableVia (const std::string &net_type) const override
 
std::string to_string () const override
 
- Public Member Functions inherited from openvpn::ReachabilityInterface
virtual ~ReachabilityInterface ()=default
 

Public Attributes

std::unique_ptr< ReachabilityViaInternetinternet
 
std::unique_ptr< ReachabilityViaWiFiwifi
 

Additional Inherited Members

- Public Types inherited from openvpn::ReachabilityInterface
enum  Status { NotReachable , ReachableViaWiFi , ReachableViaWWAN }
 

Detailed Description

Definition at line 331 of file reachable.hpp.

Constructor & Destructor Documentation

◆ Reachability()

openvpn::Reachability::Reachability ( const bool  enable_internet,
const bool  enable_wifi 
)
inline

Definition at line 334 of file reachable.hpp.

Member Function Documentation

◆ reachable()

Status openvpn::Reachability::reachable ( ) const
inlineoverridevirtual

Implements openvpn::ReachabilityInterface.

Definition at line 368 of file reachable.hpp.

◆ reachableVia()

bool openvpn::Reachability::reachableVia ( const std::string &  net_type) const
inlineoverridevirtual

Implements openvpn::ReachabilityInterface.

Definition at line 378 of file reachable.hpp.

◆ reachableViaCellular()

bool openvpn::Reachability::reachableViaCellular ( ) const
inline

Definition at line 360 of file reachable.hpp.

Here is the caller graph for this function:

◆ reachableViaWiFi()

bool openvpn::Reachability::reachableViaWiFi ( ) const
inline

Definition at line 342 of file reachable.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::Reachability::to_string ( ) const
inlineoverridevirtual

Implements openvpn::ReachabilityInterface.

Definition at line 388 of file reachable.hpp.

Member Data Documentation

◆ internet

std::unique_ptr<ReachabilityViaInternet> openvpn::Reachability::internet

Definition at line 400 of file reachable.hpp.

◆ wifi

std::unique_ptr<ReachabilityViaWiFi> openvpn::Reachability::wifi

Definition at line 401 of file reachable.hpp.


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