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
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
face.hpp
nfd::Face::Error
Face-related error.
Definition:
face.hpp:63
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
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:45
nfd::Face
represents a face
Definition:
face.hpp:57
nfd::InternalFace::setInterestFilter
virtual void setInterestFilter(const Name &filter, OnInterest onInterest)
Definition:
internal-face.cpp:135
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
nfd::CommandValidator
Definition:
command-validator.hpp:34
nfd::InternalFace::getValidator
CommandValidator & getValidator()
Definition:
internal-face.hpp:90
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
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
ndn::Data
represents a Data packet
Definition:
data.hpp:39
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 Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11