aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.h
diff options
context:
space:
mode:
authorBushstar <bushsolo@gmail.com>2021-05-25 07:15:34 +0100
committerBushstar <bushsolo@gmail.com>2021-05-25 07:15:34 +0100
commitc71117fcb04fc2e45b5e76fe96b077a07b0c0f82 (patch)
treebed43ef6788fe13599ccc6fe296de1e08b43ca4a /src/netbase.h
parentb295395664bd37e26d168c329f238237b34aef8c (diff)
downloadbitcoin-c71117fcb04fc2e45b5e76fe96b077a07b0c0f82.tar.xz
net: remove non-blocking bool from interface
Diffstat (limited to 'src/netbase.h')
-rw-r--r--src/netbase.h4
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);