ゴミ箱
Classes | Typedefs | Enumerations | Functions
boost::beast::websocket::detail Namespace Reference

Classes

struct  frame_header
 
class  maskgen_t
 
class  pausation
 
struct  pmd_offer
 
class  teardown_tcp_op
 
class  utf8_checker_t
 
class  websocket_error_category
 

Typedefs

using fh_buffer = flat_static_buffer< 14 >
 
using frame_buffer = flat_static_buffer< 2+8+4+125 >
 
using sec_ws_key_type = static_string< beast::detail::base64::encoded_size(16)>
 
using sec_ws_accept_type = static_string< beast::detail::base64::encoded_size(20)>
 
using maskgen = maskgen_t< std::minstd_rand >
 
using prepared_key = std::conditional< sizeof(void *)==8, std::uint64_t, std::uint32_t >::type
 
template<class F >
using is_RequestDecorator = typename beast::detail::is_invocable< F, void(request_type &)>::type
 
template<class F >
using is_ResponseDecorator = typename beast::detail::is_invocable< F, void(response_type &)>::type
 
using utf8_checker = utf8_checker_t<>
 

Enumerations

enum  opcode : std::uint8_t {
  opcode::cont = 0, opcode::text = 1, opcode::binary = 2, opcode::rsv3 = 3,
  opcode::rsv4 = 4, opcode::rsv5 = 5, opcode::rsv6 = 6, opcode::rsv7 = 7,
  opcode::close = 8, opcode::ping = 9, opcode::pong = 10, opcode::crsvb = 11,
  opcode::crsvc = 12, opcode::crsvd = 13, opcode::crsve = 14, opcode::crsvf = 15
}
 

Functions

std::uint16_t big_uint16_to_native (void const *buf)
 
std::uint64_t big_uint64_to_native (void const *buf)
 
std::uint32_t little_uint32_to_native (void const *buf)
 
void native_to_little_uint32 (std::uint32_t v, void *buf)
 
bool constexpr is_reserved (opcode op)
 
bool constexpr is_valid (opcode op)
 
bool constexpr is_control (opcode op)
 
bool is_valid_close_code (std::uint16_t v)
 
template<class DynamicBuffer >
void write (DynamicBuffer &db, frame_header const &fh)
 
template<class Buffers >
void read_ping (ping_data &data, Buffers const &bs)
 
template<class Buffers >
void read_close (close_reason &cr, Buffers const &bs, close_code &code)
 
template<class Gen >
void make_sec_ws_key (sec_ws_key_type &key, Gen &g)
 
template<class = void>
void make_sec_ws_accept (sec_ws_accept_type &accept, string_view key)
 
void prepare_key (std::uint32_t &prepared, std::uint32_t key)
 
void prepare_key (std::uint64_t &prepared, std::uint32_t key)
 
template<class T >
std::enable_if< std::is_integral< T >::value, T >::type ror (T t, unsigned n=1)
 
template<class = void>
void mask_inplace_fast (boost::asio::mutable_buffer const &b, std::uint32_t &key)
 
template<class = void>
void mask_inplace_fast (boost::asio::mutable_buffer const &b, std::uint64_t &key)
 
void mask_inplace (boost::asio::mutable_buffer const &b, std::uint32_t &key)
 
void mask_inplace (boost::asio::mutable_buffer const &b, std::uint64_t &key)
 
template<class MutableBuffers , class KeyType >
void mask_inplace (MutableBuffers const &bs, KeyType &key)
 
template<class = void>
int parse_bits (string_view s)
 
template<class Allocator >
void pmd_read (pmd_offer &offer, http::basic_fields< Allocator > const &fields)
 
template<class Allocator >
void pmd_write (http::basic_fields< Allocator > &fields, pmd_offer const &offer)
 
template<class Allocator >
void pmd_negotiate (http::basic_fields< Allocator > &fields, pmd_offer &config, pmd_offer const &offer, permessage_deflate const &o)
 
void pmd_normalize (pmd_offer &offer)
 
template<class DeflateStream , class ConstBufferSequence >
bool deflate (DeflateStream &zo, boost::asio::mutable_buffer &out, consuming_buffers< ConstBufferSequence > &cb, bool fin, std::size_t &total_in, error_code &ec)
 
template<class = void>
bool check_utf8 (char const *p, std::size_t n)
 
error_category const & get_error_category ()
 

Typedef Documentation

template<class F >
using boost::beast::websocket::detail::is_RequestDecorator = typedef typename beast::detail::is_invocable<F, void(request_type&)>::type
template<class F >
using boost::beast::websocket::detail::is_ResponseDecorator = typedef typename beast::detail::is_invocable<F, void(response_type&)>::type
using boost::beast::websocket::detail::maskgen = typedef maskgen_t<std::minstd_rand>
using boost::beast::websocket::detail::prepared_key = typedef std::conditional<sizeof(void*) == 8, std::uint64_t, std::uint32_t>::type

Enumeration Type Documentation

enum boost::beast::websocket::detail::opcode : std::uint8_t
strong

WebSocket frame header opcodes.

Enumerator
cont 
text 
binary 
rsv3 
rsv4 
rsv5 
rsv6 
rsv7 
close 
ping 
pong 
crsvb 
crsvc 
crsvd 
crsve 
crsvf 

Function Documentation

std::uint16_t boost::beast::websocket::detail::big_uint16_to_native ( void const *  buf)
inline
std::uint64_t boost::beast::websocket::detail::big_uint64_to_native ( void const *  buf)
inline
template<class = void>
bool boost::beast::websocket::detail::check_utf8 ( char const *  p,
std::size_t  n 
)
template<class DeflateStream , class ConstBufferSequence >
bool boost::beast::websocket::detail::deflate ( DeflateStream &  zo,
boost::asio::mutable_buffer &  out,
consuming_buffers< ConstBufferSequence > &  cb,
bool  fin,
std::size_t &  total_in,
error_code ec 
)
error_category const& boost::beast::websocket::detail::get_error_category ( )
inline
bool constexpr boost::beast::websocket::detail::is_control ( opcode  op)
inline
bool constexpr boost::beast::websocket::detail::is_reserved ( opcode  op)
inline
bool constexpr boost::beast::websocket::detail::is_valid ( opcode  op)
inline
bool boost::beast::websocket::detail::is_valid_close_code ( std::uint16_t  v)
inline
std::uint32_t boost::beast::websocket::detail::little_uint32_to_native ( void const *  buf)
inline
template<class = void>
void boost::beast::websocket::detail::make_sec_ws_accept ( sec_ws_accept_type accept,
string_view  key 
)
template<class Gen >
void boost::beast::websocket::detail::make_sec_ws_key ( sec_ws_key_type key,
Gen &  g 
)
void boost::beast::websocket::detail::mask_inplace ( boost::asio::mutable_buffer const &  b,
std::uint32_t &  key 
)
inline
void boost::beast::websocket::detail::mask_inplace ( boost::asio::mutable_buffer const &  b,
std::uint64_t &  key 
)
inline
template<class MutableBuffers , class KeyType >
void boost::beast::websocket::detail::mask_inplace ( MutableBuffers const &  bs,
KeyType &  key 
)
template<class = void>
void boost::beast::websocket::detail::mask_inplace_fast ( boost::asio::mutable_buffer const &  b,
std::uint32_t &  key 
)
template<class = void>
void boost::beast::websocket::detail::mask_inplace_fast ( boost::asio::mutable_buffer const &  b,
std::uint64_t &  key 
)
void boost::beast::websocket::detail::native_to_little_uint32 ( std::uint32_t  v,
void *  buf 
)
inline
template<class = void>
int boost::beast::websocket::detail::parse_bits ( string_view  s)
template<class Allocator >
void boost::beast::websocket::detail::pmd_negotiate ( http::basic_fields< Allocator > &  fields,
pmd_offer config,
pmd_offer const &  offer,
permessage_deflate const &  o 
)
void boost::beast::websocket::detail::pmd_normalize ( pmd_offer offer)
inline
template<class Allocator >
void boost::beast::websocket::detail::pmd_read ( pmd_offer offer,
http::basic_fields< Allocator > const &  fields 
)
template<class Allocator >
void boost::beast::websocket::detail::pmd_write ( http::basic_fields< Allocator > &  fields,
pmd_offer const &  offer 
)
void boost::beast::websocket::detail::prepare_key ( std::uint32_t &  prepared,
std::uint32_t  key 
)
inline
void boost::beast::websocket::detail::prepare_key ( std::uint64_t &  prepared,
std::uint32_t  key 
)
inline
template<class Buffers >
void boost::beast::websocket::detail::read_close ( close_reason cr,
Buffers const &  bs,
close_code code 
)
template<class Buffers >
void boost::beast::websocket::detail::read_ping ( ping_data data,
Buffers const &  bs 
)
template<class T >
std::enable_if<std::is_integral<T>::value, T>::type boost::beast::websocket::detail::ror ( t,
unsigned  n = 1 
)
inline
template<class DynamicBuffer >
void boost::beast::websocket::detail::write ( DynamicBuffer &  db,
frame_header const &  fh 
)