NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
network-monitor.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_UTIL_NETWORK_MONITOR_HPP
23
#define NDN_UTIL_NETWORK_MONITOR_HPP
24
25
#include "
signal.hpp
"
26
27
#include <boost/asio/io_service.hpp>
28
29
namespace
ndn
{
30
namespace
util {
31
48
class
NetworkMonitor
: boost::noncopyable
49
{
50
public
:
51
class
Error
:
public
std::runtime_error
52
{
53
public
:
54
explicit
55
Error
(
const
std::string& what)
56
:
std
::runtime_error(what)
57
{
58
}
59
};
60
66
explicit
67
NetworkMonitor
(boost::asio::io_service& io);
68
72
~NetworkMonitor
();
73
74
Signal<NetworkMonitor>
onNetworkStateChanged
;
75
76
private
:
77
class
Impl
;
78
std::unique_ptr<Impl> m_impl;
79
};
80
81
}
// namespace util
82
}
// namespace autoconfig
83
84
#endif // NDN_UTIL_NETWORK_MONITOR_HPP
ndn::util::NetworkMonitor::Error::Error
Error(const std::string &what)
Definition:
network-monitor.hpp:55
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::util::NetworkMonitor
Network state change monitor.
Definition:
network-monitor.hpp:48
std
STL namespace.
ndn::util::NetworkMonitor::NetworkMonitor
NetworkMonitor(boost::asio::io_service &io)
Construct instance and start monitoring for network state changes.
Definition:
network-monitor.cpp:242
ndn::util::NetworkMonitor::Impl
Definition:
network-monitor.cpp:238
ndn::util::NetworkMonitor::onNetworkStateChanged
Signal< NetworkMonitor > onNetworkStateChanged
Definition:
network-monitor.hpp:74
signal.hpp
ndn::util::NetworkMonitor::Error
Definition:
network-monitor.hpp:51
ndn::util::NetworkMonitor::~NetworkMonitor
~NetworkMonitor()
Terminate network state monitoring.
Definition:
network-monitor.cpp:247
ndnSIM
ndn-cxx
src
util
network-monitor.hpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11