diff options
author | Bushstar <bushsolo@gmail.com> | 2021-05-25 07:15:34 +0100 |
---|---|---|
committer | Bushstar <bushsolo@gmail.com> | 2021-05-25 07:15:34 +0100 |
commit | c71117fcb04fc2e45b5e76fe96b077a07b0c0f82 (patch) | |
tree | bed43ef6788fe13599ccc6fe296de1e08b43ca4a /src/netbase.h | |
parent | b295395664bd37e26d168c329f238237b34aef8c (diff) | |
download | bitcoin-c71117fcb04fc2e45b5e76fe96b077a07b0c0f82.tar.xz |
net: remove non-blocking bool from interface
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netbase.h b/src/netbase.h index 6a87c338a0..3425f1cf61 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -220,8 +220,8 @@ bool ConnectSocketDirectly(const CService &addrConnect, const Sock& sock, int nT */ bool ConnectThroughProxy(const proxyType& proxy, const std::string& strDest, uint16_t port, const Sock& sock, int nTimeout, bool& outProxyConnectionFailed); -/** Disable or enable blocking-mode for a socket */ -bool SetSocketNonBlocking(const SOCKET& hSocket, bool fNonBlocking); +/** 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); |