aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/edioutput/Transport.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-19 14:48:39 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-19 14:48:39 +0200
commit5ad4acef6721a67b8156cd6f7b45ad59849ca09b (patch)
treeadeedaa825f2ef2aa4f9b30265d007b6e7abe8ef /contrib/edioutput/Transport.h
parentc92c05d1199a2380d8c8c79a89c7e1f3159a2603 (diff)
downloadODR-AudioEnc-5ad4acef6721a67b8156cd6f7b45ad59849ca09b.tar.gz
ODR-AudioEnc-5ad4acef6721a67b8156cd6f7b45ad59849ca09b.tar.bz2
ODR-AudioEnc-5ad4acef6721a67b8156cd6f7b45ad59849ca09b.zip
Common 44ae39c: Make SEQ and PSEQ available on EDI receive and improve error handling
Diffstat (limited to 'contrib/edioutput/Transport.h')
-rw-r--r--contrib/edioutput/Transport.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/edioutput/Transport.h b/contrib/edioutput/Transport.h
index 3bcc2f4..be93297 100644
--- a/contrib/edioutput/Transport.h
+++ b/contrib/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();