NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
n
p
r
s
u
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
f
i
l
m
n
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
// forward declaration
28
namespace
boost
{
29
namespace
asio {
30
class
io_service;
31
}
// namespace asio
32
}
// namespace boost
33
34
namespace
ndn
{
35
namespace
util {
36
53
class
NetworkMonitor
: boost::noncopyable
54
{
55
public
:
56
class
Error
:
public
std::runtime_error
57
{
58
public
:
59
explicit
60
Error
(
const
std::string& what)
61
:
std
::runtime_error(what)
62
{
63
}
64
};
65
71
explicit
72
NetworkMonitor
(boost::asio::io_service& io);
73
77
~
NetworkMonitor
();
78
79
Signal<NetworkMonitor>
onNetworkStateChanged
;
80
81
private
:
82
class
Impl
;
83
std::unique_ptr<Impl> m_impl;
84
};
85
86
}
// namespace util
87
}
// namespace autoconfig
88
89
#endif // NDN_UTIL_NETWORK_MONITOR_HPP
ndn::util::NetworkMonitor::Error::Error
Error(const std::string &what)
Definition:
network-monitor.hpp:60
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
boost
Copyright (c) 2013-2016 Regents of the University of California.
Definition:
ndn-content-store.hpp:209
ndn::util::NetworkMonitor
Network state change monitor.
Definition:
network-monitor.hpp:53
std
STL namespace.
ndn::util::signal::Signal
provides a lightweight signal / event system
Definition:
signal-signal.hpp:50
ndn::util::NetworkMonitor::Impl
Definition:
network-monitor-impl-osx.hpp:36
ndn::util::NetworkMonitor::onNetworkStateChanged
Signal< NetworkMonitor > onNetworkStateChanged
Definition:
network-monitor.hpp:79
signal.hpp
ndn::util::NetworkMonitor::Error
Definition:
network-monitor.hpp:56
ndnSIM
ndn-cxx
src
util
network-monitor.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13