WarningAlertPacketSerializer Class Reference

Simu5G: WarningAlertPacketSerializer Class Reference
Simu5G
WarningAlertPacketSerializer Class Reference

#include <WarningAlertPacketSerializer.h>

Detailed Description

Converts between ApplicationPacket and binary (network byte order) application packet.

This serializer works for all the WarningAppPacket packets. The structure of a WarningAppPacket packet is the following:

  • packet type code
  • length of the subsequent package size
  • data

auto pkt = pk->peekAtFront<WarningAppPacket>(); if(strcmp(pkt->getType(), START_MECAPP) == 0) it is a WarningStartPacket

Codes: 0 START 1 STOP 2 ALERT