diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-14 15:35:28 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-14 15:35:28 +0200 |
commit | ee7aae13524f67a4cc6e7f7404cbcae4693dbc25 (patch) | |
tree | c45fe45224ba20435ca4ba4169e408fb9e0e025c /src/zmq2edi/zmq2edi.cpp | |
parent | 1c77fb55da641348fc71f6a82a4d178ec1960c1e (diff) | |
download | dabmux-ee7aae13524f67a4cc6e7f7404cbcae4693dbc25.tar.gz dabmux-ee7aae13524f67a4cc6e7f7404cbcae4693dbc25.tar.bz2 dabmux-ee7aae13524f67a4cc6e7f7404cbcae4693dbc25.zip |
Set EDI destination defaults and add error checking
Diffstat (limited to 'src/zmq2edi/zmq2edi.cpp')
-rw-r--r-- | src/zmq2edi/zmq2edi.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zmq2edi/zmq2edi.cpp b/src/zmq2edi/zmq2edi.cpp index 2d1963b..a1269a9 100644 --- a/src/zmq2edi/zmq2edi.cpp +++ b/src/zmq2edi/zmq2edi.cpp @@ -222,6 +222,11 @@ int start(int argc, char **argv) return 1; } + if (edi_destination.dest_addr.empty() or edi_conf.dest_port == 0) { + etiLog.level(error) << "No EDI output defined"; + return 1; + } + edi_conf.destinations.push_back(edi_destination); etiLog.level(info) << "Setting up EDI Sender with delay " << delay_ms << " ms"; |