aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Socket.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-11-17 09:39:13 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-11-17 09:39:13 +0100
commit4fa485c237e48a2edb8c804b2abbdbb7e033dfc9 (patch)
tree1ba3fad87cce697c7ab83162515ac508260ddb58 /lib/Socket.h
parent1897c5abaf8837002bda6d618d38627a878e996f (diff)
downloadODR-SourceCompanion-4fa485c237e48a2edb8c804b2abbdbb7e033dfc9.tar.gz
ODR-SourceCompanion-4fa485c237e48a2edb8c804b2abbdbb7e033dfc9.tar.bz2
ODR-SourceCompanion-4fa485c237e48a2edb8c804b2abbdbb7e033dfc9.zip
Common c63fb05: Add TCPSocket::connect with timeout
Diffstat (limited to 'lib/Socket.h')
-rw-r--r--lib/Socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Socket.h b/lib/Socket.h
index 33cdc05..08607a5 100644
--- a/lib/Socket.h
+++ b/lib/Socket.h
@@ -168,6 +168,7 @@ class TCPSocket {
bool valid(void) const;
void connect(const std::string& hostname, int port, bool nonblock = false);
+ void connect(const std::string& hostname, int port, int timeout_ms);
void listen(int port, const std::string& name);
void close(void);