aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.h
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-01-04 13:14:32 +0100
committerVasil Dimov <vd@FreeBSD.org>2021-02-10 11:00:12 +0100
commitaa17a44551c03b00a47854438afe9f2f89b6ea74 (patch)
tree32818a531a860f31a2ada1ae8fdef4341cc5296f /src/netbase.h
parent29d2aeb4a2b1830be4724aab3a84a62f072056f4 (diff)
net: move MillisToTimeval() from netbase to util/time
Move `MillisToTimeval()` from `netbase.{h,cpp}` to `src/util/system.{h,cpp}`. This is necessary in order to use `MillisToTimeval()` from a newly introduced `src/util/sock.{h,cpp}` which cannot depend on netbase because netbase will depend on it.
Diffstat (limited to 'src/netbase.h')
-rw-r--r--src/netbase.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/netbase.h b/src/netbase.h
index ac4cd97673..3dc656d0db 100644
--- a/src/netbase.h
+++ b/src/netbase.h
@@ -62,10 +62,6 @@ bool CloseSocket(SOCKET& hSocket);
bool SetSocketNonBlocking(const SOCKET& hSocket, bool fNonBlocking);
/** Set the TCP_NODELAY flag on a socket */
bool SetSocketNoDelay(const SOCKET& hSocket);
-/**
- * Convert milliseconds to a struct timeval for e.g. select.
- */
-struct timeval MillisToTimeval(int64_t nTimeout);
void InterruptSocks5(bool interrupt);
#endif // BITCOIN_NETBASE_H