aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-01 04:25:08 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-01 04:25:08 +0100
commitaf8fb6c3210f3c3923cdfe8660687f8a330dd6b2 (patch)
tree4657e9a399c3531727d7902e97d083fee65f198b /lib
parentfdff20e96d7198124542e6d03c27e1d496c4b328 (diff)
downloaddabmod-af8fb6c3210f3c3923cdfe8660687f8a330dd6b2.tar.gz
dabmod-af8fb6c3210f3c3923cdfe8660687f8a330dd6b2.tar.bz2
dabmod-af8fb6c3210f3c3923cdfe8660687f8a330dd6b2.zip
Code cosmetics and udp multicast documentation
Diffstat (limited to 'lib')
-rw-r--r--lib/UdpSocket.cpp5
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);
}