NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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
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
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
g
i
k
l
m
n
p
r
s
u
w
+
Related Functions
b
c
d
f
i
k
l
n
o
p
s
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
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
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
validator-null.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25
#ifndef NDN_SECURITY_VALIDATOR_NULL_HPP
26
#define NDN_SECURITY_VALIDATOR_NULL_HPP
27
28
#include "
validator.hpp
"
29
30
namespace
ndn
{
31
32
class
ValidatorNull
:
public
Validator
33
{
34
public
:
35
virtual
36
~ValidatorNull
()
37
{
38
}
39
40
protected
:
41
virtual
void
42
checkPolicy
(
const
Data
& data,
43
int
nSteps,
44
const
OnDataValidated
& onValidated,
45
const
OnDataValidationFailed
& onValidationFailed,
46
std::vector<shared_ptr<ValidationRequest> >& nextSteps)
47
{
48
onValidated(data.shared_from_this());
49
}
50
51
virtual
void
52
checkPolicy
(
const
Interest
& interest,
53
int
nSteps,
54
const
OnInterestValidated
& onValidated,
55
const
OnInterestValidationFailed
& onValidationFailed,
56
std::vector<shared_ptr<ValidationRequest> >& nextSteps)
57
{
58
onValidated(interest.shared_from_this());
59
}
60
};
61
62
}
// namespace ndn
63
64
#endif //NDN_SECURITY_VALIDATOR_NULL_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::ValidatorNull::checkPolicy
virtual void checkPolicy(const Data &data, int nSteps, const OnDataValidated &onValidated, const OnDataValidationFailed &onValidationFailed, std::vector< shared_ptr< ValidationRequest > > &nextSteps)
Check the Data against policy and return the next validation step if necessary.
Definition:
validator-null.hpp:42
ndn::ValidatorNull
Definition:
validator-null.hpp:32
validator.hpp
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:45
ndn::ValidatorNull::~ValidatorNull
virtual ~ValidatorNull()
Definition:
validator-null.hpp:36
ndn::OnDataValidated
function< void(const shared_ptr< const Data > &)> OnDataValidated
Callback to report a successful Data validation.
Definition:
validation-request.hpp:38
ndn::OnDataValidationFailed
function< void(const shared_ptr< const Data > &, const std::string &)> OnDataValidationFailed
Callback to report a failed Data validation.
Definition:
validation-request.hpp:42
ndn::OnInterestValidationFailed
function< void(const shared_ptr< const Interest > &, const std::string &)> OnInterestValidationFailed
Callback to report a failed Interest validation.
Definition:
validation-request.hpp:35
ndn::ValidatorNull::checkPolicy
virtual void checkPolicy(const Interest &interest, int nSteps, const OnInterestValidated &onValidated, const OnInterestValidationFailed &onValidationFailed, std::vector< shared_ptr< ValidationRequest > > &nextSteps)
Check the Interest against validation policy and return the next validation step if necessary...
Definition:
validator-null.hpp:52
ndn::Data
represents a Data packet
Definition:
data.hpp:39
ndn::Validator
Validator is one of the main classes of the security library.
Definition:
validator.hpp:46
ndn::OnInterestValidated
function< void(const shared_ptr< const Interest > &)> OnInterestValidated
Callback to report a successful Interest validation.
Definition:
validation-request.hpp:31
ndnSIM
ndn-cxx
src
security
validator-null.hpp
Generated on Sat Nov 12 2016 16:02:53 for ndnSIM by
1.8.12