NFD: Named Data Networking Forwarding Daemon 0.6.0 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
#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) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition:
algorithm.hpp:32
internal-transport.hpp
daemon
face
null-face.cpp
Generated on Mon Oct 16 2017 13:51:49 for NFD: Named Data Networking Forwarding Daemon by
1.8.11