From 9d6ddfcb36115084237bac3a3f1c49ddf0da765f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 15 Jan 2021 08:22:18 +0100 Subject: Common 6b5db53: Update zmq.hpp, TCPReceiveServer, EDI decoder and output --- src/Outputs.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/Outputs.cpp') diff --git a/src/Outputs.cpp b/src/Outputs.cpp index 44dc865..7046f61 100644 --- a/src/Outputs.cpp +++ b/src/Outputs.cpp @@ -151,13 +151,11 @@ void EDI::add_udp_destination(const std::string& host, unsigned int port) { auto dest = make_shared(); dest->dest_addr = host; - m_edi_conf.dest_port = port; + dest->dest_port = port; m_edi_conf.destinations.push_back(dest); // We cannot carry AF packets over UDP, because they would be too large. m_edi_conf.enable_pft = true; - - // TODO make FEC configurable } void EDI::add_tcp_destination(const std::string& host, unsigned int port) @@ -173,6 +171,12 @@ void EDI::add_tcp_destination(const std::string& host, unsigned int port) m_edi_conf.dump = false; } +void EDI::set_fec(int fec) +{ + m_edi_conf.enable_pft = true; + m_edi_conf.fec = fec; +} + bool EDI::enabled() const { return not m_edi_conf.destinations.empty(); -- cgit v1.2.3