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 48 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 242 of file network-monitor.cpp.
Referenced by ndn::util::NetworkMonitor::Error::Error().
ndn::util::NetworkMonitor::~NetworkMonitor | ( | ) |
Terminate network state monitoring.
Definition at line 247 of file network-monitor.cpp.
Referenced by ndn::util::NetworkMonitor::Error::Error().
Signal<NetworkMonitor> ndn::util::NetworkMonitor::onNetworkStateChanged |
Definition at line 74 of file network-monitor.hpp.
Referenced by nfd::Nfd::initialize().