diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-29 17:35:43 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-06-20 16:38:31 +0200 |
commit | e8ff3f0c52e7512a580bc907dc72e5bb141b4217 (patch) | |
tree | 0a2b42013e2cf72f01190f9e31d7beaa0e434148 /src/util/sock.h | |
parent | 175fb2670a2a24220afb3eea99b7b65b0aa89c76 (diff) | |
download | bitcoin-e8ff3f0c52e7512a580bc907dc72e5bb141b4217.tar.xz |
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.h | 3 |
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 |