NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
face-event-notification.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_MGMT_NFD_FACE_EVENT_NOTIFICATION_HPP
23 #define NDN_MGMT_NFD_FACE_EVENT_NOTIFICATION_HPP
24 
25 #include "face-traits.hpp"
26 #include "../../encoding/block.hpp"
27 
28 namespace ndn {
29 namespace nfd {
30 
39 };
40 
46 class FaceEventNotification : public FaceTraits<FaceEventNotification>
47 {
48 public:
50 
51  explicit
52  FaceEventNotification(const Block& block);
53 
56  template<encoding::Tag TAG>
57  size_t
58  wireEncode(EncodingImpl<TAG>& encoder) const;
59 
62  const Block&
63  wireEncode() const;
64 
67  void
68  wireDecode(const Block& wire);
69 
70 public: // getters & setters
72  getKind() const
73  {
74  return m_kind;
75  }
76 
78  setKind(FaceEventKind kind);
79 
80 protected:
81  void
82  wireReset() const;
83 
84 private:
85  FaceEventKind m_kind;
86 
87  mutable Block m_wire;
88 };
89 
90 std::ostream&
91 operator<<(std::ostream& os, const FaceEventNotification& notification);
92 
93 } // namespace nfd
94 } // namespace ndn
95 
96 #endif // NDN_MGMT_NFD_FACE_EVENT_NOTIFICATION_HPP
Copyright (c) 2011-2015 Regents of the University of California.
face went UP (from DOWN state)
represents a Face status change notification
Class representing a wire element of NDN-TLV packet format.
Definition: block.hpp:43
FaceEventNotification & setKind(FaceEventKind kind)
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
providers getters and setters of face information fields
Definition: face-traits.hpp:36
const Block & wireEncode() const
encode FaceEventNotification
void wireDecode(const Block &wire)
decode FaceEventNotification
face went DOWN (from UP state)