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 140 of file netlink-message.hpp.

Constructor & Destructor Documentation

◆ NetlinkMessage()

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

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

Member Function Documentation

◆ operator*()

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

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

◆ operator->()

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

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

◆ isValid()

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

◆ getNext()

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

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

References isValid().

Referenced by ndn::net::NetlinkSocket::nlmsgTypeToString().

◆ getPayload()

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

◆ getAttributes()

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

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