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
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
internal-face.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_MGMT_INTERNAL_FACE_HPP
27
#define NFD_DAEMON_MGMT_INTERNAL_FACE_HPP
28
29
#include "
face/face.hpp
"
30
#include "
app-face.hpp
"
31
32
#include "
command-validator.hpp
"
33
34
namespace
nfd {
35
36
class
InternalFace
:
public
Face
,
public
AppFace
37
{
38
public
:
42
class
Error
:
public
Face::Error
43
{
44
public
:
45
explicit
46
Error
(
const
std::string& what)
47
:
Face
::
Error
(what)
48
{
49
}
50
};
51
52
InternalFace
();
53
54
CommandValidator
&
55
getValidator
();
56
57
virtual
58
~InternalFace
();
59
60
// Overridden Face methods for forwarder
61
62
virtual
void
63
sendInterest
(
const
Interest& interest);
64
65
virtual
void
66
sendData
(
const
Data& data);
67
68
virtual
void
69
close
();
70
71
// Methods implementing AppFace interface. Do not invoke from forwarder.
72
73
virtual
void
74
setInterestFilter
(
const
Name
& filter,
75
OnInterest
onInterest);
76
77
virtual
void
78
put
(
const
Data& data);
79
80
private
:
81
void
82
processInterest(
const
shared_ptr<const Interest>& interest);
83
84
private
:
85
std::map<Name, OnInterest> m_interestFilters;
86
CommandValidator
m_validator;
87
};
88
89
inline
CommandValidator
&
90
InternalFace::getValidator
()
91
{
92
return
m_validator;
93
}
94
95
96
}
// namespace nfd
97
98
#endif // NFD_DAEMON_MGMT_INTERNAL_FACE_HPP
nfd::AppFace
Definition:
app-face.hpp:37
nfd::Face::Error
Face-related error.
Definition:
face.hpp:65
nfd::CommandValidator
CommandValidator
Definition:
command-validator.cpp:36
nfd::InternalFace::Error::Error
Error(const std::string &what)
Definition:
internal-face.hpp:46
app-face.hpp
nfd::InternalFace::Error
InternalFace-related error.
Definition:
internal-face.hpp:42
nfd::InternalFace::sendData
virtual void sendData(const Data &data)
send a Data
Definition:
internal-face.cpp:123
nfd::InternalFace::put
virtual void put(const Data &data)
Definition:
internal-face.cpp:143
nfd::InternalFace::~InternalFace
virtual ~InternalFace()
Definition:
internal-face.cpp:148
face.hpp
nfd::Face
represents a face
Definition:
face.hpp:59
nfd::InternalFace::setInterestFilter
virtual void setInterestFilter(const Name &filter, OnInterest onInterest)
Definition:
internal-face.cpp:135
ns3::ndn::Name
Name
Definition:
ndn-common.cpp:25
nfd::CommandValidator
Definition:
command-validator.hpp:34
nfd::InternalFace::getValidator
CommandValidator & getValidator()
Definition:
internal-face.hpp:90
nfd::InternalFace::sendInterest
virtual void sendInterest(const Interest &interest)
send an Interest
Definition:
internal-face.cpp:40
command-validator.hpp
nfd::OnInterest
function< void(const Name &, const Interest &)> OnInterest
Definition:
app-face.hpp:35
nfd::InternalFace::close
virtual void close()
Close the face.
Definition:
internal-face.cpp:129
nfd::InternalFace
Definition:
internal-face.hpp:36
nfd::InternalFace::InternalFace
InternalFace()
Definition:
internal-face.cpp:34
ndnSIM
NFD
daemon
mgmt
internal-face.hpp
Generated on Wed Feb 18 2015 16:31:16 for ndnSIM by
1.8.7