NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd-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_MANAGEMENT_NFD_FACE_EVENT_NOTIFICATION_HPP
23
#define NDN_MANAGEMENT_NFD_FACE_EVENT_NOTIFICATION_HPP
24
25
#include "
nfd-face-traits.hpp
"
26
#include "../encoding/block.hpp"
27
28
namespace
ndn
{
29
namespace
nfd
{
30
34
enum
FaceEventKind
{
35
FACE_EVENT_CREATED
= 1,
36
FACE_EVENT_DESTROYED
= 2
37
};
38
44
class
FaceEventNotification
:
public
FaceTraits
<FaceEventNotification>
45
{
46
public
:
47
FaceEventNotification
();
48
49
explicit
50
FaceEventNotification
(
const
Block
& block);
51
54
template
<encoding::Tag TAG>
55
size_t
56
wireEncode
(
EncodingImpl<TAG>
& encoder)
const
;
57
60
const
Block
&
61
wireEncode
()
const
;
62
65
void
66
wireDecode
(
const
Block
& wire);
67
68
public
:
// getters & setters
69
FaceEventKind
70
getKind
()
const
71
{
72
return
m_kind;
73
}
74
75
FaceEventNotification
&
76
setKind
(
FaceEventKind
kind);
77
78
protected
:
79
void
80
wireReset
()
const
;
81
82
private
:
83
FaceEventKind
m_kind;
84
85
mutable
Block
m_wire;
86
};
87
88
std::ostream&
89
operator<<
(std::ostream& os,
const
FaceEventNotification
& notification);
90
91
}
// namespace nfd
92
}
// namespace ndn
93
94
#endif // NDN_MANAGEMENT_NFD_FACE_EVENT_NOTIFICATION_HPP
ndn::tlv::nfd::FaceEventNotification
Definition:
tlv-nfd.hpp:69
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::FACE_EVENT_DESTROYED
Definition:
nfd-face-event-notification.hpp:36
ndn::nfd::FaceEventNotification
represents a Face status change notification
Definition:
nfd-face-event-notification.hpp:44
ndn::Block
Class representing a wire element of NDN-TLV packet format.
Definition:
block.hpp:43
ndn::nfd::FaceEventNotification::setKind
FaceEventNotification & setKind(FaceEventKind kind)
Definition:
nfd-face-event-notification.cpp:156
ndn::nfd::FaceEventNotification::FaceEventNotification
FaceEventNotification()
Definition:
nfd-face-event-notification.cpp:36
ndn::nfd::FACE_EVENT_CREATED
Definition:
nfd-face-event-notification.hpp:35
ndn::nfd::FaceEventNotification::wireReset
void wireReset() const
Definition:
nfd-face-event-notification.cpp:164
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::nfd::FaceEventNotification::getKind
FaceEventKind getKind() const
Definition:
nfd-face-event-notification.hpp:70
ndn::nfd::operator<<
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Definition:
nfd-constants.cpp:29
ndn::encoding::EncodingImpl
Definition:
encoding-buffer-fwd.hpp:45
ndn::nfd::FaceEventKind
FaceEventKind
Definition:
nfd-face-event-notification.hpp:34
ndn::nfd::FaceTraits
providers getters and setters of face information fields
Definition:
nfd-face-traits.hpp:36
ndn::nfd::FaceEventNotification::wireEncode
const Block & wireEncode() const
encode FaceEventNotification
Definition:
nfd-face-event-notification.cpp:73
ndn::nfd::FaceEventNotification::wireDecode
void wireDecode(const Block &wire)
decode FaceEventNotification
Definition:
nfd-face-event-notification.cpp:89
nfd-face-traits.hpp
ndnSIM
ndn-cxx
src
management
nfd-face-event-notification.hpp
Generated on Fri Feb 23 2018 12:30:54 for ndnSIM by
1.8.14