staticlib_pion  2.0.2
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
staticlib::pion::websocket_detail::msg_data_src Class Reference

Source implementation that allows to unmask the payload from one or more (for continuation) frames in streaming mode More...

#include <staticlib/pion/websocket.hpp>

Public Member Functions

 msg_data_src (std::vector< sl::websocket::frame > &frames)
 Constructor.
 src_multi ([&frames]{auto vec=std::vector< sl::websocket::masked_payload_source >();if(frames.size() > 1){for(auto &fr:frames){vec.emplace_back(fr.payload_unmasked());}}return sl::io::make_multi_source(std::move(vec));}())
 msg_data_src (const msg_data_src &)
 Deleted copy constructor.
msg_data_src & operator= (const msg_data_src &)
 Deleted copy-assignment operator.
 msg_data_src (msg_data_src &&other)
 Move constructor.
msg_data_src & operator= (msg_data_src &&)
 Deleted move-assignment operator.
std::streamsize read (sl::io::span< char > span)
 Read implementation, that reads from single or multi source depending on the presence of continuation frames.

Detailed Description

Source implementation that allows to unmask the payload from one or more (for continuation) frames in streaming mode

Constructor & Destructor Documentation

staticlib::pion::websocket_detail::msg_data_src::msg_data_src ( std::vector< sl::websocket::frame > &  frames)
inline

Constructor.

Parameters
frameslist of received frames
staticlib::pion::websocket_detail::msg_data_src::msg_data_src ( const msg_data_src &  )

Deleted copy constructor.

staticlib::pion::websocket_detail::msg_data_src::msg_data_src ( msg_data_src &&  other)
inline

Move constructor.

Parameters
otherother instance

Member Function Documentation

msg_data_src& staticlib::pion::websocket_detail::msg_data_src::operator= ( const msg_data_src &  )

Deleted copy-assignment operator.

msg_data_src& staticlib::pion::websocket_detail::msg_data_src::operator= ( msg_data_src &&  )

Deleted move-assignment operator.

std::streamsize staticlib::pion::websocket_detail::msg_data_src::read ( sl::io::span< char >  span)
inline

Read implementation, that reads from single or multi source depending on the presence of continuation frames.

Parameters
spandest buffer
Returns
number of bytes read
staticlib::pion::websocket_detail::msg_data_src::src_multi ( )
inline

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