| 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) |
no test coverage detected