diff options
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) { |