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

#include <reachable.hpp>

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

Public Member Functions

 ReachabilityTracker (const bool enable_internet, const bool enable_wifi)
 
void reachability_tracker_schedule ()
 
void reachability_tracker_cancel ()
 
virtual void reachability_tracker_event (const ReachabilityBase &rb, SCNetworkReachabilityFlags flags)=0
 
virtual ~ReachabilityTracker ()
 

Private Member Functions

bool schedule (ReachabilityBase &rb, SCNetworkReachabilityCallBack cb)
 
void cancel (ReachabilityBase &rb)
 

Static Private Member Functions

static void internet_callback_static (SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void *info)
 
static void wifi_callback_static (SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void *info)
 

Private Attributes

Reachability reachability
 
bool scheduled
 

Detailed Description

Definition at line 404 of file reachable.hpp.

Constructor & Destructor Documentation

◆ ReachabilityTracker()

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

Definition at line 407 of file reachable.hpp.

◆ ~ReachabilityTracker()

virtual openvpn::ReachabilityTracker::~ReachabilityTracker ( )
inlinevirtual

Definition at line 439 of file reachable.hpp.

Member Function Documentation

◆ cancel()

void openvpn::ReachabilityTracker::cancel ( ReachabilityBase rb)
inlineprivate

Definition at line 477 of file reachable.hpp.

Here is the caller graph for this function:

◆ internet_callback_static()

static void openvpn::ReachabilityTracker::internet_callback_static ( SCNetworkReachabilityRef  target,
SCNetworkReachabilityFlags  flags,
void *  info 
)
inlinestaticprivate

Definition at line 486 of file reachable.hpp.

Here is the caller graph for this function:

◆ reachability_tracker_cancel()

void openvpn::ReachabilityTracker::reachability_tracker_cancel ( )
inline

Definition at line 425 of file reachable.hpp.

Here is the caller graph for this function:

◆ reachability_tracker_event()

virtual void openvpn::ReachabilityTracker::reachability_tracker_event ( const ReachabilityBase rb,
SCNetworkReachabilityFlags  flags 
)
pure virtual

Implemented in openvpn::MacLifeCycle.

Here is the caller graph for this function:

◆ reachability_tracker_schedule()

void openvpn::ReachabilityTracker::reachability_tracker_schedule ( )
inline

Definition at line 413 of file reachable.hpp.

Here is the caller graph for this function:

◆ schedule()

bool openvpn::ReachabilityTracker::schedule ( ReachabilityBase rb,
SCNetworkReachabilityCallBack  cb 
)
inlineprivate

Definition at line 445 of file reachable.hpp.

Here is the caller graph for this function:

◆ wifi_callback_static()

static void openvpn::ReachabilityTracker::wifi_callback_static ( SCNetworkReachabilityRef  target,
SCNetworkReachabilityFlags  flags,
void *  info 
)
inlinestaticprivate

Definition at line 494 of file reachable.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ reachability

Reachability openvpn::ReachabilityTracker::reachability
private

Definition at line 502 of file reachable.hpp.

◆ scheduled

bool openvpn::ReachabilityTracker::scheduled
private

Definition at line 503 of file reachable.hpp.


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