diff options
Diffstat (limited to 'contrib/edioutput/Transport.cpp')
-rw-r--r-- | contrib/edioutput/Transport.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/edioutput/Transport.cpp b/contrib/edioutput/Transport.cpp index 274f7ec..5d34814 100644 --- a/contrib/edioutput/Transport.cpp +++ b/contrib/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) { |