diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-08 12:08:44 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-08 12:08:44 +0200 |
commit | c8c9d5abf8238c3531ecae8fb272fdf5bbffd336 (patch) | |
tree | 30049a585baf782b3a0d74a319768efbdf66542e /src/output | |
parent | 3a7202306c6aca5be2dad604f62063d605fd0982 (diff) | |
download | dabmod-c8c9d5abf8238c3531ecae8fb272fdf5bbffd336.tar.gz dabmod-c8c9d5abf8238c3531ecae8fb272fdf5bbffd336.tar.bz2 dabmod-c8c9d5abf8238c3531ecae8fb272fdf5bbffd336.zip |
Unify Socket library with other mmbTools
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/Feedback.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/output/Feedback.cpp b/src/output/Feedback.cpp index 17e45bf..88d8319 100644 --- a/src/output/Feedback.cpp +++ b/src/output/Feedback.cpp @@ -200,14 +200,13 @@ void DPDFeedbackServer::ReceiveBurstThread() void DPDFeedbackServer::ServeFeedback() { - TCPSocket m_server_sock; - m_server_sock.listen(m_port); + Socket::TCPSocket m_server_sock; + m_server_sock.listen(m_port, "127.0.0.1"); etiLog.level(info) << "DPD Feedback server listening on port " << m_port; while (m_running) { - struct sockaddr_in client; - TCPSocket client_sock = m_server_sock.accept_with_timeout(1000, &client); + auto client_sock = m_server_sock.accept(1000); if (not m_running) { break; |