Class WebsocketFrame

Nested Relationships

Nested Types

Class Documentation

class async_web_server_cpp::WebsocketFrame

An single websocket frame and associated header

Public Functions

struct async_web_server_cpp::WebsocketFrame::Header __attribute__ ((__packed__))
bool fromMessage(const WebsocketMessage &message)
bool serialize(std::vector<unsigned char> &buffer)

Public Members

Header header
char header_bytes[2]
union async_web_server_cpp::WebsocketFrame::@0 __attribute__
uint64_t length
unsigned char mask[4]
std::string content
struct Header

Public Types

enum opcode

Values:

enumerator opcode_continuation
enumerator opcode_text
enumerator opcode_binary
enumerator opcode_close
enumerator opcode_ping
enumerator opcode_pong

Public Members

enum async_web_server_cpp::WebsocketFrame::Header::opcode opcode
bool rsv3
bool rsv2
bool rsv1
bool fin
unsigned int len
bool mask