diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-13 14:01:44 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-04-15 09:39:25 +0200 |
commit | a2c4a7acd1dfb2fb7e3c9dac6b3d8c9354b2e0a6 (patch) | |
tree | 0573c7c80f15532d086a43fe392c9fa1f55a4b69 /src/netbase.h | |
parent | d65b6c3fb9cdd41fa53bc76a7b8f49aaa089b0bc (diff) |
net: use Sock::SetSockOpt() instead of standalone SetSocketNoDelay()
Since the former is mockable, this makes it easier to test higher level
code that sets the TCP_NODELAY flag.
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/netbase.h b/src/netbase.h index c226e6b73d..bf7522210d 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -223,8 +223,6 @@ bool ConnectThroughProxy(const Proxy& proxy, const std::string& strDest, uint16_ /** Enable non-blocking mode for a socket */ bool SetSocketNonBlocking(const SOCKET& hSocket); -/** Set the TCP_NODELAY flag on a socket */ -bool SetSocketNoDelay(const SOCKET& hSocket); void InterruptSocks5(bool interrupt); /** |