summaryrefslogtreecommitdiffstats
path: root/src/TcpSocket.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-10 10:10:24 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-10 10:10:24 +0200
commite2e1a0f374aeffc933d0e5d295607197d6b74a4a (patch)
tree1878bc61a66d221d3e4395e10e1d72aa487fb36e /src/TcpSocket.h
parenteccfa8ad3774205a929ff70090540d24674618a1 (diff)
downloaddabmux-e2e1a0f374aeffc933d0e5d295607197d6b74a4a.tar.gz
dabmux-e2e1a0f374aeffc933d0e5d295607197d6b74a4a.tar.bz2
dabmux-e2e1a0f374aeffc933d0e5d295607197d6b74a4a.zip
Fix dabOutputTCP shutdown using accept() with timeout
Diffstat (limited to 'src/TcpSocket.h')
-rw-r--r--src/TcpSocket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/TcpSocket.h b/src/TcpSocket.h
index f1354a7..5a4a808 100644
--- a/src/TcpSocket.h
+++ b/src/TcpSocket.h
@@ -46,6 +46,8 @@
#include <iostream>
#include <string>
+#include <boost/optional.hpp>
+
/**
* This class represents a TCP socket.
*/
@@ -84,6 +86,7 @@ class TcpSocket
void listen(void);
TcpSocket accept(void);
+ boost::optional<TcpSocket> accept(int timeout_ms);
/** Retrieve address this socket is bound to */
InetAddress getOwnAddress() const;