forked from boostorg/beast
Refactor websocket::stream operations
This commit is contained in:
1 parent
6af6a8da99
commit
dfd08bf6ae
25 files changed
+1103
-914
No files matched your search
@@ -151,18 +151,18 @@ class stream
|
||||
using control_cb_type =
|
||||
std::function<void(frame_type, string_view)>;
|
||||
|
||||
enum class status
|
||||
{
|
||||
open,
|
||||
closing,
|
||||
closed,
|
||||
failed
|
||||
};
|
||||
|
||||
struct impl_type;
|
||||
|
||||
std::shared_ptr<impl_type> impl_;
|
||||
|
||||
using time_point = typename
|
||||
std::chrono::steady_clock::time_point;
|
||||
|
||||
static constexpr time_point never()
|
||||
{
|
||||
return (time_point::max)();
|
||||
}
|
||||
|
||||
public:
|
||||
/// Indicates if the permessage-deflate extension is supported
|
||||
using is_deflate_supported =
|
||||
@@ -579,6 +579,18 @@ public:
|
||||
bool
|
||||
text() const;
|
||||
|
||||
/*
|
||||
timer settings
|
||||
|
||||
* Timer is disabled
|
||||
* Close on timeout
|
||||
- no complete frame received, OR
|
||||
- no complete frame sent
|
||||
* Ping on timeout
|
||||
- ping on no complete frame received
|
||||
* if can't ping?
|
||||
*/
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
//
|
||||
// Handshaking (Client)
|
||||
|
||||
Reference in new issue
Block a user