summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/edi/PFT.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-26 22:10:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-26 22:10:29 +0100
commitd4797ace7fcee41d9c9cdf35a3cac54e4c0235db (patch)
treeafa17bd8b9c7cdd2a54d751c84dd947048e8cb3d /src/dabOutput/edi/PFT.h
parenta8dcf5fcb160e94d0fcdb12ac71961c85e1e4599 (diff)
downloaddabmux-d4797ace7fcee41d9c9cdf35a3cac54e4c0235db.tar.gz
dabmux-d4797ace7fcee41d9c9cdf35a3cac54e4c0235db.tar.bz2
dabmux-d4797ace7fcee41d9c9cdf35a3cac54e4c0235db.zip
EDI: write transport header in PFT
Diffstat (limited to 'src/dabOutput/edi/PFT.h')
-rw-r--r--src/dabOutput/edi/PFT.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dabOutput/edi/PFT.h b/src/dabOutput/edi/PFT.h
index 1d09c0b..4aae817 100644
--- a/src/dabOutput/edi/PFT.h
+++ b/src/dabOutput/edi/PFT.h
@@ -39,6 +39,7 @@
#include "AFPacket.h"
#include "Log.h"
#include "ReedSolomon.h"
+#include "dabOutput/dabOutput.h"
typedef std::vector<uint8_t> RSBlock;
typedef std::vector<uint8_t> PFTFragment;
@@ -49,12 +50,13 @@ class PFT
static const int ParityBytes = 48;
PFT(unsigned int RSDataWordLength,
- unsigned int NumRecoverableFragments,
- bool verbose) :
+ unsigned int NumRecoverableFragments,
+ const edi_configuration_t &conf) :
m_k(RSDataWordLength),
m_m(NumRecoverableFragments),
+ m_dest_port(conf.dest_port),
m_pseq(0),
- m_verbose(verbose)
+ m_verbose(conf.verbose)
{
if (m_k > 207) {
etiLog.level(warn) <<
@@ -84,6 +86,8 @@ class PFT
unsigned int m_k; // length of RS data word
unsigned int m_m; // number of fragments that can be recovered if lost
+ unsigned int m_dest_port; // Destination port for transport header
+
uint16_t m_pseq;
size_t m_num_chunks;