diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-01-16 08:06:09 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-01-16 08:06:09 +0100 |
commit | d14814a92377084177753c7a60d83a9307ad0672 (patch) | |
tree | 3b901eed7eaacc07341d16dbcd0db0d60951a5e0 /src/EtiReader.h | |
parent | 0efb3830dcd441ffdb53ebe69f2dc2886614fb8b (diff) | |
download | dabmod-d14814a92377084177753c7a60d83a9307ad0672.tar.gz dabmod-d14814a92377084177753c7a60d83a9307ad0672.tar.bz2 dabmod-d14814a92377084177753c7a60d83a9307ad0672.zip |
Update common code to latest, update zmq.hpp and adapt
Diffstat (limited to 'src/EtiReader.h')
-rw-r--r-- | src/EtiReader.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/EtiReader.h b/src/EtiReader.h index be3dd27..d97acf6 100644 --- a/src/EtiReader.h +++ b/src/EtiReader.h @@ -201,13 +201,13 @@ private: }; /* The EDI input does not use the inputs defined in InputReader.h, as they were - * designed for ETI. It uses the EdiTransport which in turn uses a threaded - * receiver. + * designed for ETI. */ class EdiTransport { public: EdiTransport(EdiDecoder::ETIDecoder& decoder); + /* Can be called once when using TCP, or several times when using UDP */ void Open(const std::string& uri); bool isEnabled(void) const { return m_enabled; } @@ -224,8 +224,8 @@ class EdiTransport { std::string m_bindto; std::string m_mcastaddr; - enum class Proto { UDP, TCP }; - Proto m_proto; + enum class Proto { Unspecified, UDP, TCP }; + Proto m_proto = Proto::Unspecified; Socket::UDPReceiver m_udp_rx; std::vector<uint8_t> m_tcpbuffer; Socket::TCPClient m_tcpclient; |