summaryrefslogtreecommitdiffstats
path: root/src/zmq2edi/EDISender.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-08-06 15:52:21 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-08-06 15:52:21 +0200
commit6db7ccca948f94570b86b82970afeb4ed7be718f (patch)
tree7213dcc2ec5d48f6c1476861c1ed18d58141f22e /src/zmq2edi/EDISender.h
parentb9afad6f157ca35dada1ee48e0239bcb04b6ec4b (diff)
downloaddabmux-6db7ccca948f94570b86b82970afeb4ed7be718f.tar.gz
dabmux-6db7ccca948f94570b86b82970afeb4ed7be718f.tar.bz2
dabmux-6db7ccca948f94570b86b82970afeb4ed7be718f.zip
zmq2edi: Add option to drop late packets
Diffstat (limited to 'src/zmq2edi/EDISender.h')
-rw-r--r--src/zmq2edi/EDISender.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zmq2edi/EDISender.h b/src/zmq2edi/EDISender.h
index f5959b9..4c2af54 100644
--- a/src/zmq2edi/EDISender.h
+++ b/src/zmq2edi/EDISender.h
@@ -3,7 +3,7 @@
2011, 2012 Her Majesty the Queen in Right of Canada (Communications
Research Center Canada)
- Copyright (C) 2017
+ Copyright (C) 2018
Matthias P. Braendli, matthias.braendli@mpb.li
http://www.opendigitalradio.org
@@ -55,7 +55,8 @@ class EDISender {
EDISender(const EDISender& other) = delete;
EDISender& operator=(const EDISender& other) = delete;
~EDISender();
- void start(const edi_configuration_t& conf, int delay_ms);
+ void start(const edi_configuration_t& conf,
+ int delay_ms, bool drop_late_packets);
void push_frame(const frame_t& frame);
void print_configuration(void);
@@ -64,6 +65,7 @@ class EDISender {
void process(void);
int tist_delay_ms;
+ bool drop_late;
std::atomic<bool> running;
std::thread process_thread;
edi_configuration_t edi_conf;