|
|
@@ -4602,6 +4602,13 @@ private:
|
|
|
#endif
|
|
|
};
|
|
|
|
|
|
+template <class Rep, class Period>
|
|
|
+inline void
|
|
|
+WebSocket::set_read_timeout(const std::chrono::duration<Rep, Period> &duration) {
|
|
|
+ detail::duration_to_sec_and_usec(
|
|
|
+ duration, [&](time_t sec, time_t usec) { set_read_timeout(sec, usec); });
|
|
|
+}
|
|
|
+
|
|
|
template <class Rep, class Period>
|
|
|
inline void WebSocketClient::set_read_timeout(
|
|
|
const std::chrono::duration<Rep, Period> &duration) {
|
|
|
@@ -22457,13 +22464,6 @@ inline void WebSocket::set_read_timeout(time_t sec, time_t usec) {
|
|
|
strm_.set_read_timeout(sec, usec);
|
|
|
}
|
|
|
|
|
|
-template <class Rep, class Period>
|
|
|
-inline void WebSocket::set_read_timeout(
|
|
|
- const std::chrono::duration<Rep, Period> &duration) {
|
|
|
- detail::duration_to_sec_and_usec(
|
|
|
- duration, [&](time_t sec, time_t usec) { set_read_timeout(sec, usec); });
|
|
|
-}
|
|
|
-
|
|
|
// WebSocketClient implementation
|
|
|
inline WebSocketClient::WebSocketClient(
|
|
|
const std::string &scheme_host_port_path, const Headers &headers)
|