NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
null-face.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FACE_NULL_FACE_HPP
27 #define NFD_DAEMON_FACE_NULL_FACE_HPP
28 
29 #include "face.hpp"
30 
31 namespace nfd {
32 
36 class NullFace : public Face
37 {
38 public:
39  explicit
40  NullFace(const FaceUri& uri = FaceUri("null://"));
41 
42  virtual void
43  sendInterest(const Interest& interest);
44 
46  virtual void
47  sendData(const Data& data);
48 
54  virtual void
55  close();
56 };
57 
58 } // namespace nfd
59 
60 #endif // NFD_DAEMON_FACE_NULL_FACE_HPP
NullFace(const FaceUri &uri=FaceUri("null://"))
Definition: null-face.cpp:33
virtual void sendData(const Data &data)
send a Data
Definition: null-face.cpp:44
represents a face
Definition: face.hpp:59
virtual void close()
Close the face.
Definition: null-face.cpp:49
a Face that has no underlying transport and drops every packet
Definition: null-face.hpp:36
virtual void sendInterest(const Interest &interest)
send an Interest
Definition: null-face.cpp:39