summaryrefslogtreecommitdiffstats
path: root/src/InputTcpReader.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-16 10:55:15 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-16 10:55:15 +0100
commitf5820b347ea6920764023d6cf71f7a254bd7106d (patch)
treee305b1c79beb56f205f917f9be2399f0779a1d30 /src/InputTcpReader.cpp
parentbcf39bd3ff478deae0dcc51f1021ceb8700c22cc (diff)
downloaddabmod-f5820b347ea6920764023d6cf71f7a254bd7106d.tar.gz
dabmod-f5820b347ea6920764023d6cf71f7a254bd7106d.tar.bz2
dabmod-f5820b347ea6920764023d6cf71f7a254bd7106d.zip
Do some InputReader cleanup
Diffstat (limited to 'src/InputTcpReader.cpp')
-rw-r--r--src/InputTcpReader.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/InputTcpReader.cpp b/src/InputTcpReader.cpp
index 94ec0ad..9a93ad1 100644
--- a/src/InputTcpReader.cpp
+++ b/src/InputTcpReader.cpp
@@ -32,9 +32,12 @@
#include "InputReader.h"
#include "PcDebug.h"
#include "Utils.h"
-#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <arpa/inet.h>
InputTcpReader::InputTcpReader()
{
@@ -126,7 +129,7 @@ int InputTcpReader::GetNextFrame(void* buffer)
return r;
}
-void InputTcpReader::PrintInfo()
+void InputTcpReader::PrintInfo() const
{
fprintf(stderr, "Input TCP:\n");
fprintf(stderr, " Receiving from %s\n\n", m_uri.c_str());