NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
network-monitor.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#include "
network-monitor.hpp
"
23
24
#include "ndn-cxx-config.hpp"
25
26
#if defined(NDN_CXX_HAVE_COREFOUNDATION_COREFOUNDATION_H)
27
#include "
detail/network-monitor-impl-osx.hpp
"
28
#elif defined(NDN_CXX_HAVE_RTNETLINK)
29
#include "
detail/network-monitor-impl-rtnl.hpp
"
30
#else
31
32
namespace
ndn
{
33
namespace
util {
34
35
class
NetworkMonitor::Impl
36
{
37
public
:
38
Impl
(
NetworkMonitor
& nm, boost::asio::io_service& io)
39
{
40
BOOST_THROW_EXCEPTION(
Error
(
"Network monitoring is not supported on this platform"
));
41
}
42
};
43
44
}
// namespace util
45
}
// namespace ndn
46
47
#endif
48
49
namespace
ndn
{
50
namespace
util {
51
52
NetworkMonitor::NetworkMonitor
(boost::asio::io_service& io)
53
: m_impl(new
Impl
(*this, io))
54
{
55
}
56
57
NetworkMonitor::~NetworkMonitor
() =
default
;
58
59
}
// namespace util
60
}
// namespace ndn
ndn::util::NetworkMonitor::Impl::Impl
Impl(NetworkMonitor &nm, boost::asio::io_service &io)
Definition:
network-monitor.cpp:38
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
network-monitor-impl-rtnl.hpp
ndn::util::NetworkMonitor
Network state change monitor.
Definition:
network-monitor.hpp:53
network-monitor-impl-osx.hpp
ndn::util::NetworkMonitor::NetworkMonitor
NetworkMonitor(boost::asio::io_service &io)
Construct instance and start monitoring for network state changes.
Definition:
network-monitor.cpp:52
ndn::util::NetworkMonitor::Impl
Definition:
network-monitor-impl-osx.hpp:36
ndn::util::NetworkMonitor::Error
Definition:
network-monitor.hpp:56
ndn::util::NetworkMonitor::~NetworkMonitor
~NetworkMonitor()
Terminate network state monitoring.
network-monitor.hpp
ndnSIM
ndn-cxx
src
util
network-monitor.cpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13