MCPcopy Create free account
hub / github.com/diasurgical/devilution / timeout

Function timeout

3rdParty/asio/include/asio/basic_socket_streambuf.hpp:594–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592 }
593
594 int timeout() const
595 {
596 int64_t msec = traits_helper::to_posix_duration(
597 traits_helper::subtract(expiry_time_,
598 traits_helper::now())).total_milliseconds();
599 if (msec > (std::numeric_limits<int>::max)())
600 msec = (std::numeric_limits<int>::max)();
601 else if (msec < 0)
602 msec = 0;
603 return static_cast<int>(msec);
604 }
605
606 template <typename EndpointSequence>
607 void connect_to_endpoints(const EndpointSequence& endpoints)

Callers 3

overflowFunction · 0.85
connect_to_endpointsFunction · 0.85

Calls 1

total_millisecondsMethod · 0.80

Tested by

no test coverage detected