NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::net::NetlinkMessage Class Reference

#include <netlink-message.hpp>

Public Member Functions

 NetlinkMessage (const uint8_t *buf, size_t buflen) noexcept
 
const nlmsghdr & operator* () const noexcept
 
const nlmsghdr * operator-> () const noexcept
 
bool isValid () const noexcept
 
NetlinkMessage getNext () const noexcept
 
template<typename T >
const T * getPayload () const noexcept
 
template<typename AttributeT , typename PayloadT >
NetlinkMessageAttributes< AttributeT > getAttributes (const PayloadT *p) const noexcept
 

Detailed Description

Definition at line 139 of file netlink-message.hpp.

Constructor & Destructor Documentation

◆ NetlinkMessage()

ndn::net::NetlinkMessage::NetlinkMessage ( const uint8_t *  buf,
size_t  buflen 
)
inlineexplicitnoexcept

Definition at line 143 of file netlink-message.hpp.

References buf.

Member Function Documentation

◆ operator*()

const nlmsghdr& ndn::net::NetlinkMessage::operator* ( ) const
inlinenoexcept

Definition at line 151 of file netlink-message.hpp.

◆ operator->()

const nlmsghdr* ndn::net::NetlinkMessage::operator-> ( ) const
inlinenoexcept

Definition at line 157 of file netlink-message.hpp.

◆ isValid()

bool ndn::net::NetlinkMessage::isValid ( ) const
inlinenoexcept

Definition at line 163 of file netlink-message.hpp.

Referenced by getAttributes(), getNext(), and getPayload().

◆ getNext()

NetlinkMessage ndn::net::NetlinkMessage::getNext ( ) const
inlinenoexcept

Definition at line 169 of file netlink-message.hpp.

References isValid().

◆ getPayload()

template<typename T >
const T* ndn::net::NetlinkMessage::getPayload ( ) const
inlinenoexcept

Definition at line 180 of file netlink-message.hpp.

References isValid().

◆ getAttributes()

template<typename AttributeT , typename PayloadT >
NetlinkMessageAttributes<AttributeT> ndn::net::NetlinkMessage::getAttributes ( const PayloadT *  p) const
inlinenoexcept

Definition at line 192 of file netlink-message.hpp.

References isValid().


The documentation for this class was generated from the following file: