#include <pending_packet.hpp>
Public Types | |
using | Packet = std::tuple< std::unique_ptr< PDU >, std::unique_ptr< DownPacket > > |
using | Function = std::function< void(Packet &&, Args &&...)> |
Public Member Functions | |
PendingPacket (Packet &&packet, const Function &fn) | |
template<typename... OtherArgs> | |
PendingPacket (PendingPacket< PDU, OtherArgs... > &&other, std::function< void(PendingPacket< PDU, OtherArgs... > &&, Args &&...)> fn) | |
template<typename... OtherArgs, typename... T> | |
PendingPacket (PendingPacket< PDU, OtherArgs... > &&other, T &&... ts) | |
void | process (Args &&... args) |
std::size_t | length () const |
Clock::duration | reduce_lifetime (Clock::duration queuing_time) |
const PDU & | pdu () const |
const DownPacket & | payload () const |
Function | action () const |
Packet | packet () && |
PendingPacket | duplicate () |
Private Attributes | |
Packet | m_packet |
Function | m_function |
PendingPacket combines PDU, payload and custom action code for pending processing steps. This makes it easy to resume packet forwarding steps after buffering, for example.
Definition at line 22 of file pending_packet.hpp.
using vanetza::geonet::PendingPacket< PDU, Args >::Function = std::function<void(Packet&&, Args&&...)> |
Definition at line 26 of file pending_packet.hpp.
using vanetza::geonet::PendingPacket< PDU, Args >::Packet = std::tuple<std::unique_ptr<PDU>, std::unique_ptr<DownPacket> > |
Definition at line 25 of file pending_packet.hpp.
|
inline |
Definition at line 30 of file pending_packet.hpp.
|
inline |
Definition at line 34 of file pending_packet.hpp.
|
inline |
Definition at line 44 of file pending_packet.hpp.
|
inline |
Definition at line 101 of file pending_packet.hpp.
|
inline |
Definition at line 105 of file pending_packet.hpp.
|
inline |
Definition at line 61 of file pending_packet.hpp.
|
inline |
Definition at line 103 of file pending_packet.hpp.
|
inline |
Definition at line 94 of file pending_packet.hpp.
|
inline |
Definition at line 87 of file pending_packet.hpp.
|
inline |
Definition at line 54 of file pending_packet.hpp.
|
inline |
Definition at line 68 of file pending_packet.hpp.
|
private |
Definition at line 120 of file pending_packet.hpp.
|
private |
Definition at line 119 of file pending_packet.hpp.