C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
caf::net::web_socket::frame Class Reference

An implicitly shared type for passing along WebSocket data frames, i.e., text or binary frames. More...

#include <frame.hpp>

Public Member Functions

 frame (frame &&)=default
 
 frame (const frame &)=default
 
frameoperator= (frame &&)=default
 
frameoperator= (const frame &)=default
 
 frame (const_byte_span bytes)
 
 frame (std::string_view text)
 
 operator bool () const noexcept
 
size_t size () const noexcept
 
bool empty () const noexcept
 
void swap (frame &other)
 
bool is_binary () const noexcept
 
bool is_text () const noexcept
 
const_byte_span as_binary () const noexcept
 
std::string_view as_text () const noexcept
 

Static Public Member Functions

template<class... Buffers>
static frame from_buffers (const Buffers &... buffers)
 
template<class... Buffers>
static frame from_strings (const Buffers &... buffers)
 

Detailed Description

An implicitly shared type for passing along WebSocket data frames, i.e., text or binary frames.


The documentation for this class was generated from the following file: