MCPcopy Create free account
hub / github.com/LUX-Core/lux / MillisToTimeval

Function MillisToTimeval

src/netbase.cpp:241–247  ·  view source on GitHub ↗

* Convert milliseconds to a struct timeval for select. */

Source from the content-addressed store, hash-verified

239 * Convert milliseconds to a struct timeval for select.
240 */
241struct timeval MillisToTimeval(int64_t nTimeout)
242{
243 struct timeval timeout;
244 timeout.tv_sec = nTimeout / 1000;
245 timeout.tv_usec = (nTimeout % 1000) * 1000;
246 return timeout;
247}
248
249/**
250 * Read bytes from socket. This will either read the full number of bytes requested

Callers 3

disconnected_cbMethod · 0.85
InterruptibleRecvFunction · 0.85
ConnectSocketDirectlyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected