represents a Face status change notification More...
#include <face-event-notification.hpp>
Additional Inherited Members | |
Protected Member Functions inherited from ndn::nfd::FaceTraits< FaceEventNotification > | |
FaceTraits () | |
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 |
Block | m_wire |
represents a Face status change notification
Definition at line 35 of file face-event-notification.hpp.
ndn::nfd::FaceEventNotification::FaceEventNotification | ( | ) |
Definition at line 34 of file face-event-notification.cpp.
|
explicit |
Definition at line 39 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 46 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(), ndn::encoding::prependStringBlock(), and ndn::tlv::nfd::Uri.
const Block & ndn::nfd::FaceEventNotification::wireEncode | ( | ) | const |
encode FaceEventNotification
Definition at line 67 of file face-event-notification.cpp.
References ndn::Block::hasWire(), and ndn::nfd::FaceTraits< FaceEventNotification >::m_wire.
void ndn::nfd::FaceEventNotification::wireDecode | ( | const Block & | wire | ) |
decode FaceEventNotification
Definition at line 83 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::nfd::FaceTraits< FaceEventNotification >::m_wire, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::encoding::readString(), ndn::Block::type(), and ndn::tlv::nfd::Uri.
Referenced by FaceEventNotification().
|
inline |
Definition at line 61 of file face-event-notification.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceEventNotification & ndn::nfd::FaceEventNotification::setKind | ( | FaceEventKind | kind | ) |
Definition at line 158 of file face-event-notification.cpp.
References ndn::nfd::FaceTraits< FaceEventNotification >::m_wire, and ndn::Block::reset().