diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-05-19 14:48:13 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-05-19 14:48:13 +0200 |
commit | 26b20a9aa0167b64e75b813aaf9b41557b4de3df (patch) | |
tree | 8ea23fc867cde052a70795159e8c122dccd763a7 /lib/edioutput/Transport.h | |
parent | 9067a63a4dd433c6109ba0157db516c9cac398e4 (diff) | |
download | dabmux-26b20a9aa0167b64e75b813aaf9b41557b4de3df.tar.gz dabmux-26b20a9aa0167b64e75b813aaf9b41557b4de3df.tar.bz2 dabmux-26b20a9aa0167b64e75b813aaf9b41557b4de3df.zip |
Common 44ae39c: Make SEQ and PSEQ available on EDI receive and improve error handling
Diffstat (limited to 'lib/edioutput/Transport.h')
-rw-r--r-- | lib/edioutput/Transport.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/edioutput/Transport.h b/lib/edioutput/Transport.h index 3bcc2f4..be93297 100644 --- a/lib/edioutput/Transport.h +++ b/lib/edioutput/Transport.h @@ -27,7 +27,6 @@ #pragma once -#include "config.h" #include "EDIConfig.h" #include "AFPacket.h" #include "PFT.h" @@ -44,7 +43,7 @@ namespace edi { -/** Configuration for EDI output */ +/** STI sender for EDI output */ class Sender { public: @@ -53,8 +52,20 @@ class Sender { Sender operator=(const Sender&) = delete; ~Sender(); + // Assemble the tagpacket into an AF packet, and if needed, + // apply PFT and then schedule for transmission. void write(const TagPacket& tagpacket); + // Schedule an already assembled AF Packet for transmission, + // applying PFT if needed. + void write(const AFPacket& af_packet); + + // Set the sequence numbers to be used for the next call to write() + // seq is for the AF layer + // pseq is for the PFT layer + void override_af_sequence(uint16_t seq); + void override_pft_sequence(uint16_t pseq); + private: void run(); |