diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-16 10:55:15 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-16 10:55:15 +0100 |
commit | f5820b347ea6920764023d6cf71f7a254bd7106d (patch) | |
tree | e305b1c79beb56f205f917f9be2399f0779a1d30 /src/InputTcpReader.cpp | |
parent | bcf39bd3ff478deae0dcc51f1021ceb8700c22cc (diff) | |
download | dabmod-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.cpp | 7 |
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()); |