NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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
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
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
k
l
n
o
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
f
i
k
l
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
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
v
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
c
d
e
i
k
l
m
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
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
f
g
i
k
l
n
p
r
s
t
u
Typedefs
+
Macros
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
pit-out-record.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
pit-out-record.hpp
"
27
28
namespace
nfd
{
29
namespace
pit {
30
31
OutRecord::OutRecord
(
Face
&
face
)
32
:
FaceRecord
(
face
)
33
{
34
}
35
36
bool
37
OutRecord::setIncomingNack
(
const
lp::Nack
& nack)
38
{
39
if
(nack.
getInterest
().
getNonce
() != this->
getLastNonce
()) {
40
return
false
;
41
}
42
43
m_incomingNack.reset(
new
lp::NackHeader
(nack.
getHeader
()));
44
return
true
;
45
}
46
47
}
// namespace pit
48
}
// namespace nfd
nfd::face::Face
generalization of a network interface
Definition:
face.hpp:67
ndn::lp::Nack::getHeader
const NackHeader & getHeader() const
Definition:
nack.hpp:65
ndn::lp::Nack
represents a Network Nack
Definition:
nack.hpp:40
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::Interest::getNonce
uint32_t getNonce() const
Get nonce.
Definition:
interest.cpp:301
face
nfd::pit::FaceRecord
contains information about an Interest on an incoming or outgoing face
Definition:
pit-face-record.hpp:40
nfd::pit::OutRecord::OutRecord
OutRecord(Face &face)
Definition:
pit-out-record.cpp:31
nfd::pit::FaceRecord::getLastNonce
uint32_t getLastNonce() const
Definition:
pit-face-record.hpp:80
nfd::pit::OutRecord::setIncomingNack
bool setIncomingNack(const lp::Nack &nack)
sets a NACK received from getFace()
Definition:
pit-out-record.cpp:37
pit-out-record.hpp
ndn::lp::NackHeader
represents a Network NACK header
Definition:
nack-header.hpp:59
ndn::lp::Nack::getInterest
const Interest & getInterest() const
Definition:
nack.hpp:53
ndnSIM
NFD
daemon
table
pit-out-record.cpp
Generated on Sun Feb 25 2018 13:27:06 for ndnSIM by
1.8.14