Public Member Functions | Public Attributes | List of all members
async_web_server_cpp::WebsocketFrame Class Reference

#include <websocket_message.hpp>

Public Member Functions

bool fromMessage (const WebsocketMessage &message)
 
 PACKED_STRUCT (Header)
 
bool serialize (std::vector< unsigned char > &buffer)
 

Public Attributes

union {
   Header   header
 
   char   header_bytes [2]
 
}; 
 
std::string content
 
uint64_t length
 
unsigned char mask [4]
 

Detailed Description

An single websocket frame and associated header

Definition at line 27 of file websocket_message.hpp.

Member Function Documentation

◆ fromMessage()

bool async_web_server_cpp::WebsocketFrame::fromMessage ( const WebsocketMessage message)

Definition at line 6 of file websocket_message.cpp.

◆ PACKED_STRUCT()

async_web_server_cpp::WebsocketFrame::PACKED_STRUCT ( Header  )
inline

Definition at line 30 of file websocket_message.hpp.

◆ serialize()

bool async_web_server_cpp::WebsocketFrame::serialize ( std::vector< unsigned char > &  buffer)

Definition at line 37 of file websocket_message.cpp.

Member Data Documentation

◆ @1

union { ... }

◆ content

std::string async_web_server_cpp::WebsocketFrame::content

Definition at line 58 of file websocket_message.hpp.

◆ header

Header async_web_server_cpp::WebsocketFrame::header

Definition at line 53 of file websocket_message.hpp.

◆ header_bytes

char async_web_server_cpp::WebsocketFrame::header_bytes[2]

Definition at line 54 of file websocket_message.hpp.

◆ length

uint64_t async_web_server_cpp::WebsocketFrame::length

Definition at line 56 of file websocket_message.hpp.

◆ mask

unsigned char async_web_server_cpp::WebsocketFrame::mask[4]

Definition at line 57 of file websocket_message.hpp.


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


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Mon Feb 28 2022 21:54:08