NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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
#include "
generic-link-service.hpp
"
28
#include "
internal-transport.hpp
"
29
30
namespace
nfd
{
31
namespace
face
{
32
33
// FIB could restrict creating a nexthop record toward non-local face in /localhost namespace.
34
// NullFace has scope=local to enable creating a "blackhole" FIB entry under /localhost.
35
36
shared_ptr<Face>
37
makeNullFace
(
const
FaceUri
& uri)
38
{
39
return
make_shared<Face>(make_unique<GenericLinkService>(),
40
make_unique<InternalForwarderTransport>(uri, uri,
ndn::nfd::FACE_SCOPE_LOCAL
));
41
}
42
43
}
// namespace face
44
}
// namespace nfd
nfd::face::makeNullFace
shared_ptr< Face > makeNullFace(const FaceUri &uri)
Definition:
null-face.cpp:37
null-face.hpp
generic-link-service.hpp
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
face
ndn::FaceUri
represents the underlying protocol and address used by a Face
Definition:
face-uri.hpp:44
ndn::nfd::FACE_SCOPE_LOCAL
face is local
Definition:
nfd-constants.hpp:37
internal-transport.hpp
ndnSIM
NFD
daemon
face
null-face.cpp
Generated on Tue Aug 7 2018 16:19:17 for ndnSIM by
1.8.14