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
null-face.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
null-face.hpp
"
27
28
namespace
nfd
{
29
30
// FIB might restrict creating a nexthop record toward non-local face in /localhost namespace.
31
// NullFace has isLocal=true to enable creating a "blackhole" FIB entry under /localhost.
32
33
NullFace::NullFace
(
const
FaceUri
& uri)
34
:
Face
(uri, uri, true)
35
{
36
}
37
38
void
39
NullFace::sendInterest
(
const
Interest
& interest)
40
{
41
}
42
43
void
44
NullFace::sendData
(
const
Data
& data)
45
{
46
}
47
48
void
49
NullFace::close
()
50
{
51
this->
fail
(
"close"
);
52
}
53
54
}
// namespace nfd
null-face.hpp
nfd::NullFace::NullFace
NullFace(const FaceUri &uri=FaceUri("null://"))
Definition:
null-face.cpp:33
ndn::util::FaceUri
represents the underlying protocol and address used by a Face
Definition:
face-uri.hpp:44
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:45
nfd::NullFace::close
void close() 1
Close the face.
Definition:
null-face.cpp:49
nfd::NullFace::sendData
void sendData(const Data &data) 1
send a Data
Definition:
null-face.cpp:44
nfd::NullFace::sendInterest
void sendInterest(const Interest &interest) 1
send an Interest
Definition:
null-face.cpp:39
nfd::Face
represents a face
Definition:
face.hpp:57
nfd::Face::fail
void fail(const std::string &reason)
fail the face and raise onFail event if it's UP; otherwise do nothing
Definition:
face.cpp:87
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
ndn::Data
represents a Data packet
Definition:
data.hpp:39
ndnSIM
NFD
daemon
face
null-face.cpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11