diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-06 17:22:58 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-06 17:22:58 +0200 |
commit | 3dc74c15f76e999768643ed4381196292d5376bc (patch) | |
tree | 0540853e389062d81084f9735a521b8b6e58feaf /src/TcpSocket.cpp | |
parent | 956814cc526bdd245e52c5004bf5661a57d848cc (diff) | |
download | dabmux-3dc74c15f76e999768643ed4381196292d5376bc.tar.gz dabmux-3dc74c15f76e999768643ed4381196292d5376bc.tar.bz2 dabmux-3dc74c15f76e999768643ed4381196292d5376bc.zip |
EDI: Implement TCP output
Diffstat (limited to 'src/TcpSocket.cpp')
-rw-r--r-- | src/TcpSocket.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/TcpSocket.cpp b/src/TcpSocket.cpp index c05eace..3ebe73c 100644 --- a/src/TcpSocket.cpp +++ b/src/TcpSocket.cpp @@ -248,8 +248,10 @@ TCPConnection::TCPConnection(TcpSocket&& sock) : m_sender_thread(), m_sock(move(sock)) { + auto own_addr = m_sock.getOwnAddress(); auto addr = m_sock.getRemoteAddress(); - etiLog.level(debug) << "New TCP Connection from " << + etiLog.level(debug) << "New TCP Connection on port " << + own_addr.getPort() << " from " << addr.getHostAddress() << ":" << addr.getPort(); m_sender_thread = std::thread(&TCPConnection::process, this); } @@ -293,8 +295,11 @@ void TCPConnection::process() } } + + auto own_addr = m_sock.getOwnAddress(); auto addr = m_sock.getRemoteAddress(); - etiLog.level(debug) << "Dropping TCP Connection from " << + etiLog.level(debug) << "Dropping TCP Connection on port " << + own_addr.getPort() << " from " << addr.getHostAddress() << ":" << addr.getPort(); } |