NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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 
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 
34  : Face(uri, uri, true)
35 {
36 }
37 
38 void
40 {
41 }
42 
43 void
45 {
46 }
47 
48 void
50 {
51  this->fail("close");
52 }
53 
54 } // namespace nfd
NullFace(const FaceUri &uri=FaceUri("null://"))
Definition: null-face.cpp:33
represents the underlying protocol and address used by a Face
Definition: face-uri.hpp:44
represents an Interest packet
Definition: interest.hpp:45
void close() 1
Close the face.
Definition: null-face.cpp:49
void sendData(const Data &data) 1
send a Data
Definition: null-face.cpp:44
void sendInterest(const Interest &interest) 1
send an Interest
Definition: null-face.cpp:39
represents a face
Definition: face.hpp:57
void fail(const std::string &reason)
fail the face and raise onFail event if it's UP; otherwise do nothing
Definition: face.cpp:87
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
represents a Data packet
Definition: data.hpp:39