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.cpp | |
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.cpp')
-rw-r--r-- | lib/edioutput/Transport.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/edioutput/Transport.cpp b/lib/edioutput/Transport.cpp index 274f7ec..5d34814 100644 --- a/lib/edioutput/Transport.cpp +++ b/lib/edioutput/Transport.cpp @@ -126,6 +126,11 @@ void Sender::write(const TagPacket& tagpacket) // Assemble into one AF Packet edi::AFPacket af_packet = edi_afPacketiser.Assemble(tagpacket); + write(af_packet); +} + +void Sender::write(const AFPacket& af_packet) +{ if (m_conf.enable_pft) { // Apply PFT layer to AF Packet (Reed Solomon FEC and Fragmentation) vector<edi::PFTFragment> edi_fragments = edi_pft.Assemble(af_packet); @@ -194,6 +199,16 @@ void Sender::write(const TagPacket& tagpacket) } } +void Sender::override_af_sequence(uint16_t seq) +{ + edi_afPacketiser.OverrideSeq(seq); +} + +void Sender::override_pft_sequence(uint16_t pseq) +{ + edi_pft.OverridePSeq(pseq); +} + void Sender::run() { while (m_running) { |