| 447 | } |
| 448 | |
| 449 | int timeout() const |
| 450 | { |
| 451 | int64_t msec = traits_helper::to_posix_duration( |
| 452 | traits_helper::subtract(expiry_time_, |
| 453 | traits_helper::now())).total_milliseconds(); |
| 454 | if (msec > (std::numeric_limits<int>::max)()) |
| 455 | msec = (std::numeric_limits<int>::max)(); |
| 456 | else if (msec < 0) |
| 457 | msec = 0; |
| 458 | return static_cast<int>(msec); |
| 459 | } |
| 460 | |
| 461 | template <typename EndpointSequence> |
| 462 | void connect_to_endpoints(const EndpointSequence& endpoints) |
no test coverage detected