#include <cbf_packet_buffer.hpp>
Public Member Functions | |
CbfPacket (PendingPacket< GbcPdu > &&, const MacAddress &sender) | |
CbfPacket (PendingPacket< GbcPdu, const MacAddress & > &&, const MacAddress &sender) | |
CbfPacket (CbfPacket &&)=default | |
CbfPacket & | operator= (CbfPacket &&)=default |
const MacAddress & | sender () const |
const Address & | source () const |
SequenceNumber | sequence_number () const |
Clock::duration | reduce_lifetime (Clock::duration d) |
std::size_t | length () const |
PendingPacket< GbcPdu > | packet () && |
Private Attributes | |
PendingPacket< GbcPdu > | m_packet |
MacAddress | m_sender |
CbfPacket enables handling of conventional packets in a CBF packet buffer. It contains a GeoBroadcast PDU and the network layer payload.
Definition at line 33 of file cbf_packet_buffer.hpp.
vanetza::geonet::CbfPacket::CbfPacket | ( | PendingPacket< GbcPdu > && | packet, |
const MacAddress & | sender | ||
) |
Definition at line 15 of file cbf_packet_buffer.cpp.
vanetza::geonet::CbfPacket::CbfPacket | ( | PendingPacket< GbcPdu, const MacAddress & > && | packet, |
const MacAddress & | sender | ||
) |
Definition at line 20 of file cbf_packet_buffer.cpp.
std::size_t vanetza::geonet::CbfPacket::length | ( | ) | const |
Length of packet data in bytes (PDU including payload)
Definition at line 45 of file cbf_packet_buffer.cpp.
|
inline |
Definition at line 73 of file cbf_packet_buffer.hpp.
Clock::duration vanetza::geonet::CbfPacket::reduce_lifetime | ( | Clock::duration | d | ) |
Reduce lifetime of buffered packet
d | reduce lifetime by this duration |
Definition at line 40 of file cbf_packet_buffer.cpp.
const MacAddress & vanetza::geonet::CbfPacket::sender | ( | ) | const |
Get sender of buffered packet
Definition at line 25 of file cbf_packet_buffer.cpp.
SequenceNumber vanetza::geonet::CbfPacket::sequence_number | ( | ) | const |
Get sequence number of buffered packet
Definition at line 35 of file cbf_packet_buffer.cpp.
const Address & vanetza::geonet::CbfPacket::source | ( | ) | const |
Get source address of buffered packet
Definition at line 30 of file cbf_packet_buffer.cpp.
|
private |
Definition at line 76 of file cbf_packet_buffer.hpp.
|
private |
Definition at line 77 of file cbf_packet_buffer.hpp.