mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user