diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-01 04:25:08 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-01 04:25:08 +0100 |
commit | af8fb6c3210f3c3923cdfe8660687f8a330dd6b2 (patch) | |
tree | 4657e9a399c3531727d7902e97d083fee65f198b /lib/UdpSocket.cpp | |
parent | fdff20e96d7198124542e6d03c27e1d496c4b328 (diff) | |
download | dabmod-af8fb6c3210f3c3923cdfe8660687f8a330dd6b2.tar.gz dabmod-af8fb6c3210f3c3923cdfe8660687f8a330dd6b2.tar.bz2 dabmod-af8fb6c3210f3c3923cdfe8660687f8a330dd6b2.zip |
Code cosmetics and udp multicast documentation
Diffstat (limited to 'lib/UdpSocket.cpp')
-rw-r--r-- | lib/UdpSocket.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/UdpSocket.cpp b/lib/UdpSocket.cpp index 7c99724..7645eaf 100644 --- a/lib/UdpSocket.cpp +++ b/lib/UdpSocket.cpp @@ -290,11 +290,12 @@ void UdpReceiver::m_run() private: atomic<bool>& m_stop; } autoSetStop(m_stop); - if(IN_MULTICAST(ntohl(inet_addr(m_mcastaddr.c_str())))){ + if (IN_MULTICAST(ntohl(inet_addr(m_mcastaddr.c_str())))) { m_sock.reinit(m_port, m_mcastaddr); m_sock.setMulticastSource(m_bindto.c_str()); m_sock.joinGroup(m_mcastaddr.c_str(), m_bindto.c_str()); - } else { + } + else { m_sock.reinit(m_port, m_bindto); } |