diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-01-04 13:02:43 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-02-10 13:30:08 +0100 |
commit | dec9b5e850c6aad989e814aea5b630b36f55d580 (patch) | |
tree | 993908d7a5dfdeb82f365bee1e19084eebd29d31 /src/net.cpp | |
parent | aa17a44551c03b00a47854438afe9f2f89b6ea74 (diff) | |
download | bitcoin-dec9b5e850c6aad989e814aea5b630b36f55d580.tar.xz |
net: move CloseSocket() from netbase to util/sock
Move `CloseSocket()` (and `NetworkErrorString()` which it uses) from
`netbase.{h,cpp}` to newly added `src/util/sock.{h,cpp}`.
This is necessary in order to use `CloseSocket()` from a newly
introduced Sock class (which will live in `src/util/sock.{h,cpp}`).
`sock.{h,cpp}` cannot depend on netbase because netbase will depend
on it.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index 4f74bbede4..38aaeff121 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -20,6 +20,7 @@ #include <protocol.h> #include <random.h> #include <scheduler.h> +#include <util/sock.h> #include <util/strencodings.h> #include <util/translation.h> |