Network state change monitor. More...
#include <network-monitor.hpp>
Classes | |
class | Error |
class | Impl |
Public Member Functions | |
NetworkMonitor (boost::asio::io_service &io) | |
Construct instance and start monitoring for network state changes. More... | |
~NetworkMonitor () | |
Terminate network state monitoring. More... | |
Public Attributes | |
Signal< NetworkMonitor > | onNetworkStateChanged |
Network state change monitor.
When network change is detected, onNetworkStateChanged signal will be fired. Monitoring is run for the lifetime of the NetworkMonitor instance.
Network state change detection is not guaranteed to be precise and (zero or more) notifications are expected to be fired for the following events:
Definition at line 53 of file network-monitor.hpp.
|
explicit |
Construct instance and start monitoring for network state changes.
io | io_service thread that will dispatch events |
Error | when network monitoring is not supported or there is an error starting monitoring |
Definition at line 52 of file network-monitor.cpp.
References ~NetworkMonitor().
|
default |
Terminate network state monitoring.
Referenced by NetworkMonitor().
Signal<NetworkMonitor> ndn::util::NetworkMonitor::onNetworkStateChanged |
Definition at line 79 of file network-monitor.hpp.