Public Member Functions | Private Types | Private Attributes | List of all members
async_web_server_cpp::WebsocketFrameParser Class Reference

#include <websocket_message.hpp>

Public Member Functions

boost::tribool consume (WebsocketFrame &frame, char input)
 
template<typename InputIterator >
boost::tuple< boost::tribool, InputIterator > parse (WebsocketFrame &frame, InputIterator begin, InputIterator end)
 
void reset ()
 
 WebsocketFrameParser ()
 

Private Types

enum  state {
  header_byte1, header_byte2, length_8bytes_left, length_7bytes_left,
  length_6bytes_left, length_5bytes_left, length_4bytes_left, length_3bytes_left,
  length_2bytes_left, length_1bytes_left, mask_byte1, mask_byte2,
  mask_byte3, mask_byte4, body
}
 

Private Attributes

enum async_web_server_cpp::WebsocketFrameParser::state state_
 

Detailed Description

Definition at line 64 of file websocket_message.hpp.

Member Enumeration Documentation

◆ state

Enumerator
header_byte1 
header_byte2 
length_8bytes_left 
length_7bytes_left 
length_6bytes_left 
length_5bytes_left 
length_4bytes_left 
length_3bytes_left 
length_2bytes_left 
length_1bytes_left 
mask_byte1 
mask_byte2 
mask_byte3 
mask_byte4 
body 

Definition at line 85 of file websocket_message.hpp.

Constructor & Destructor Documentation

◆ WebsocketFrameParser()

async_web_server_cpp::WebsocketFrameParser::WebsocketFrameParser ( )

Definition at line 86 of file websocket_message.cpp.

Member Function Documentation

◆ consume()

boost::tribool async_web_server_cpp::WebsocketFrameParser::consume ( WebsocketFrame frame,
char  input 
)

Definition at line 96 of file websocket_message.cpp.

◆ parse()

template<typename InputIterator >
boost::tuple<boost::tribool, InputIterator> async_web_server_cpp::WebsocketFrameParser::parse ( WebsocketFrame frame,
InputIterator  begin,
InputIterator  end 
)
inline

Definition at line 72 of file websocket_message.hpp.

◆ reset()

void async_web_server_cpp::WebsocketFrameParser::reset ( )

Definition at line 91 of file websocket_message.cpp.

Member Data Documentation

◆ state_

enum async_web_server_cpp::WebsocketFrameParser::state async_web_server_cpp::WebsocketFrameParser::state_
private

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


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Tue Mar 1 2022 23:49:07