represents a Face status change notification More...
#include <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 |
uint64_t | m_flags |
represents a Face status change notification
Definition at line 46 of file face-event-notification.hpp.
ndn::nfd::FaceEventNotification::FaceEventNotification | ( | ) |
Definition at line 36 of file face-event-notification.cpp.
|
explicit |
Definition at line 41 of file 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 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::Flags, 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_flags, 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.
Referenced by nfd::FaceManager::setConfigFile().
const Block & ndn::nfd::FaceEventNotification::wireEncode | ( | ) | const |
encode FaceEventNotification
Definition at line 75 of file face-event-notification.cpp.
References ndn::Block::hasWire().
void ndn::nfd::FaceEventNotification::wireDecode | ( | const Block & | wire | ) |
decode FaceEventNotification
Definition at line 91 of file 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::Flags, 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_flags, 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 72 of file face-event-notification.hpp.
References ndn::nfd::operator<<(), setKind(), and wireReset().
Referenced by nfd::rib::RibManager::onRibUpdateFailure(), and ndn::nfd::operator<<().
FaceEventNotification & ndn::nfd::FaceEventNotification::setKind | ( | FaceEventKind | kind | ) |
Definition at line 165 of file face-event-notification.cpp.
References ndn::Block::reset().
Referenced by getKind(), and nfd::FaceManager::setConfigFile().
|
protectedvirtual |
Implements ndn::nfd::FaceTraits< FaceEventNotification >.
Definition at line 173 of file face-event-notification.cpp.
References ndn::Block::reset().
Referenced by getKind().