From aa17a44551c03b00a47854438afe9f2f89b6ea74 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Mon, 4 Jan 2021 13:14:32 +0100 Subject: 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. --- src/netbase.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/netbase.h') 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 -- cgit v1.2.3