represents a Face status change notification More...
#include <nfd-face-event-notification.hpp>
Protected Member Functions | |
void | wireReset () const |
Additional Inherited Members | |
Protected Attributes inherited from ndn::nfd::FaceTraits< FaceEventNotification > | |
uint64_t | m_faceId |
std::string | m_remoteUri |
std::string | m_localUri |
FaceScope | m_faceScope |
FacePersistency | m_facePersistency |
LinkType | m_linkType |
represents a Face status change notification
Definition at line 44 of file nfd-face-event-notification.hpp.
ndn::nfd::FaceEventNotification::FaceEventNotification | ( | ) |
Definition at line 36 of file nfd-face-event-notification.cpp.
|
explicit |
Definition at line 41 of file nfd-face-event-notification.cpp.
References wireDecode().
size_t ndn::nfd::FaceEventNotification::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
prepend FaceEventNotification to the encoder
Definition at line 48 of file nfd-face-event-notification.cpp.
References ndn::tlv::nfd::FaceEventKind, ndn::tlv::nfd::FaceEventNotification, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::FaceScope, ndn::tlv::nfd::LinkType, ndn::tlv::nfd::LocalUri, ndn::nfd::FaceTraits< FaceEventNotification >::m_faceId, ndn::nfd::FaceTraits< FaceEventNotification >::m_facePersistency, ndn::nfd::FaceTraits< FaceEventNotification >::m_faceScope, ndn::nfd::FaceTraits< FaceEventNotification >::m_linkType, ndn::nfd::FaceTraits< FaceEventNotification >::m_localUri, ndn::nfd::FaceTraits< FaceEventNotification >::m_remoteUri, ndn::encoding::prependNonNegativeIntegerBlock(), and ndn::tlv::nfd::Uri.
const Block & ndn::nfd::FaceEventNotification::wireEncode | ( | ) | const |
encode FaceEventNotification
Definition at line 73 of file nfd-face-event-notification.cpp.
References ndn::Block::hasWire().
void ndn::nfd::FaceEventNotification::wireDecode | ( | const Block & | wire | ) |
decode FaceEventNotification
Definition at line 89 of file nfd-face-event-notification.cpp.
References ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::nfd::FaceEventKind, ndn::tlv::nfd::FaceEventNotification, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::FaceScope, ndn::tlv::nfd::LinkType, ndn::tlv::nfd::LocalUri, ndn::nfd::FaceTraits< FaceEventNotification >::m_faceId, ndn::nfd::FaceTraits< FaceEventNotification >::m_facePersistency, ndn::nfd::FaceTraits< FaceEventNotification >::m_faceScope, ndn::nfd::FaceTraits< FaceEventNotification >::m_linkType, ndn::nfd::FaceTraits< FaceEventNotification >::m_localUri, ndn::nfd::FaceTraits< FaceEventNotification >::m_remoteUri, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::Block::type(), and ndn::tlv::nfd::Uri.
Referenced by FaceEventNotification().
|
inline |
Definition at line 70 of file nfd-face-event-notification.hpp.
References ndn::nfd::operator<<(), setKind(), and wireReset().
Referenced by nfd::rib::RibManager::enableLocalControlHeader(), and ndn::nfd::operator<<().
FaceEventNotification & ndn::nfd::FaceEventNotification::setKind | ( | FaceEventKind | kind | ) |
Definition at line 156 of file nfd-face-event-notification.cpp.
References ndn::Block::reset().
Referenced by getKind(), and nfd::FaceManager::onFaceRequest().
|
protectedvirtual |
Implements ndn::nfd::FaceTraits< FaceEventNotification >.
Definition at line 164 of file nfd-face-event-notification.cpp.
References ndn::Block::reset().
Referenced by getKind().