NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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  void
43  sendInterest(const Interest& interest) DECL_OVERRIDE;
44 
45  void
46  sendData(const Data& data) DECL_OVERRIDE;
47 
48  void
50 };
51 
52 } // namespace nfd
53 
54 #endif // NFD_DAEMON_FACE_NULL_FACE_HPP
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
#define DECL_OVERRIDE
expands to 'override' if compiler supports this feature, otherwise expands to nothing ...
Definition: common.hpp:49
represents a face
Definition: face.hpp:57
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
a Face that has no underlying transport and drops every packet
Definition: null-face.hpp:36
represents a Data packet
Definition: data.hpp:39