diff options
Diffstat (limited to 'src/TcpSocket.h')
-rw-r--r-- | src/TcpSocket.h | 3 |
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; |