diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-11-17 09:38:46 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-11-17 09:38:46 +0100 |
commit | 137828bbcdff3c60dab21f25e0d2379c04fee6c6 (patch) | |
tree | 0d6234c7de86b843ba1c2910bb8278ae0b29ad9a /contrib/Socket.h | |
parent | ab56227709e999fe2d585d861a01185a192d7fff (diff) | |
download | ODR-AudioEnc-137828bbcdff3c60dab21f25e0d2379c04fee6c6.tar.gz ODR-AudioEnc-137828bbcdff3c60dab21f25e0d2379c04fee6c6.tar.bz2 ODR-AudioEnc-137828bbcdff3c60dab21f25e0d2379c04fee6c6.zip |
Common c63fb05: Add TCPSocket::connect with timeout
Diffstat (limited to 'contrib/Socket.h')
-rw-r--r-- | contrib/Socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/Socket.h b/contrib/Socket.h index 33cdc05..08607a5 100644 --- a/contrib/Socket.h +++ b/contrib/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); |