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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
unicast-udp-transport.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FACE_UNICAST_UDP_TRANSPORT_HPP
27
#define NFD_DAEMON_FACE_UNICAST_UDP_TRANSPORT_HPP
28
29
#include "
datagram-transport.hpp
"
30
#include "
core/scheduler.hpp
"
31
32
namespace
nfd
{
33
namespace
face
{
34
38
class
UnicastUdpTransport
final :
public
DatagramTransport
<boost::asio::ip::udp, Unicast>
39
{
40
public
:
41
UnicastUdpTransport
(protocol::socket&& socket,
42
ndn::nfd::FacePersistency
persistency,
43
time::nanoseconds idleTimeout);
44
45
protected
:
46
virtual
void
47
beforeChangePersistency
(
ndn::nfd::FacePersistency
newPersistency)
final
;
48
49
private
:
50
void
51
scheduleClosureWhenIdle();
52
53
private
:
54
const
time::nanoseconds m_idleTimeout;
55
scheduler::ScopedEventId
m_closeIfIdleEvent;
56
};
57
58
}
// namespace face
59
}
// namespace nfd
60
61
#endif // NFD_DAEMON_FACE_UNICAST_UDP_TRANSPORT_HPP
nfd::face::DatagramTransport
Implements Transport for datagram-based protocols.
Definition:
datagram-transport.hpp:45
nfd::face::UnicastUdpTransport::UnicastUdpTransport
UnicastUdpTransport(protocol::socket &&socket, ndn::nfd::FacePersistency persistency, time::nanoseconds idleTimeout)
Definition:
unicast-udp-transport.cpp:42
nfd::face::UnicastUdpTransport
A Transport that communicates on a unicast UDP socket.
Definition:
unicast-udp-transport.hpp:38
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:49
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
datagram-transport.hpp
nfd::face::UnicastUdpTransport::beforeChangePersistency
virtual void beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) final
invoked before persistency is changed
Definition:
unicast-udp-transport.cpp:84
nfd::scheduler::ScopedEventId
cancels an event automatically upon destruction
Definition:
scheduler.hpp:57
face
scheduler.hpp
ndnSIM
NFD
daemon
face
unicast-udp-transport.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13