Base class for all packets.
More...
#include "packet.hpp"
|
template<class Archive > |
void | serialize (Archive &, const unsigned int) |
|
|
static Measurer< std::chrono::steady_clock > | measurer |
| Measurer for packet timestamps.
|
|
Base class for all packets.
Definition at line 46 of file packet.hpp.
◆ Packet() [1/2]
◆ Packet() [2/2]
mal_packet_weaver::Packet::Packet |
( |
Packet && | | ) |
|
|
default |
◆ ~Packet()
virtual mal_packet_weaver::Packet::~Packet |
( |
| ) |
|
|
virtualdefault |
Virtual destructor for Packet class.
- Todo
- : use RBAC system to manage permissions
◆ expired()
bool mal_packet_weaver::Packet::expired |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Check if the packet has expired based on its time-to-live.
Definition at line 77 of file packet.hpp.
◆ get_packet_time_alive()
float mal_packet_weaver::Packet::get_packet_time_alive |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Get the time elapsed since the packet was received.
Definition at line 74 of file packet.hpp.
◆ operator=()
◆ packet_name()
virtual const char * mal_packet_weaver::Packet::packet_name |
( |
| ) |
const |
|
pure virtual |
◆ serialize()
template<class Archive >
void mal_packet_weaver::Packet::serialize |
( |
Archive & | , |
|
|
const unsigned int | ) |
|
inlineprivate |
◆ serialize_to_bytearray()
virtual void mal_packet_weaver::Packet::serialize_to_bytearray |
( |
ByteArray & | buffer | ) |
const |
|
pure virtual |
◆ timestamp()
float mal_packet_weaver::Packet::timestamp |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Get the timestamp when the packet was received.
Definition at line 71 of file packet.hpp.
◆ cereal::access
friend class cereal::access |
|
friend |
◆ measurer
Measurer< std::chrono::steady_clock > mal_packet_weaver::Packet::measurer |
|
staticprivate |
Measurer for packet timestamps.
Definition at line 49 of file packet.hpp.
◆ time_to_live
const float mal_packet_weaver::Packet::time_to_live |
Time-to-live for the packet.
Definition at line 80 of file packet.hpp.
◆ timestamp_
const float mal_packet_weaver::Packet::timestamp_ |
Timestamp when the packet was received.
Definition at line 81 of file packet.hpp.
◆ type
The documentation for this class was generated from the following files:
- mal-packet-weaver/mal-packet-weaver/packet-impl/packet.hpp
- mal-packet-weaver/mal-packet-weaver/packet-impl/packet.cpp