aboutsummaryrefslogtreecommitdiff
path: root/src/util/sock.h
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-04-29 17:35:43 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-06-20 16:38:31 +0200
commite8ff3f0c52e7512a580bc907dc72e5bb141b4217 (patch)
tree0a2b42013e2cf72f01190f9e31d7beaa0e434148 /src/util/sock.h
parent175fb2670a2a24220afb3eea99b7b65b0aa89c76 (diff)
net: remove CloseSocket()
Do the closing in `Sock::Reset()` and remove the standalone `CloseSocket()`. This reduces the exposure of low-level sockets (i.e. integer file descriptors) outside of the `Sock` class.
Diffstat (limited to 'src/util/sock.h')
-rw-r--r--src/util/sock.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/util/sock.h b/src/util/sock.h
index 2b041dbf3c..71c6a49321 100644
--- a/src/util/sock.h
+++ b/src/util/sock.h
@@ -250,7 +250,4 @@ protected:
/** Return readable error string for a network error code */
std::string NetworkErrorString(int err);
-/** Close socket and set hSocket to INVALID_SOCKET */
-bool CloseSocket(SOCKET& hSocket);
-
#endif // BITCOIN_UTIL_SOCK_H