NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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)
28 #elif defined(NDN_CXX_HAVE_RTNETLINK)
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 
58 
59 } // namespace util
60 } // namespace ndn
Impl(NetworkMonitor &nm, boost::asio::io_service &io)
Copyright (c) 2011-2015 Regents of the University of California.
Network state change monitor.
NetworkMonitor(boost::asio::io_service &io)
Construct instance and start monitoring for network state changes.
~NetworkMonitor()
Terminate network state monitoring.