REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
#include <message.h>
Classes | |
class | StreamBuilder |
Public Member Functions | |
WebsocketsMessage (MessageType msgType, const std::string &msgData, MessageRole msgRole=MessageRole::Complete) | |
WebsocketsMessage () | |
bool | isEmpty () const |
MessageType | type () const |
bool | isText () const |
bool | isBinary () const |
bool | isPing () const |
bool | isPong () const |
bool | isClose () const |
MessageRole | role () const |
bool | isComplete () const |
bool | isPartial () const |
bool | isFirst () const |
bool | isContinuation () const |
bool | isLast () const |
std::string | data () const |
const std::string & | rawData () const |
const char * | c_str () const |
uint32_t | length () const |
Static Public Member Functions | |
static WebsocketsMessage | CreateFromFrame (internals::WebsocketsFrame frame, MessageType overrideType=MessageType::Empty) |
Detailed Description
Constructor & Destructor Documentation
◆ WebsocketsMessage() [1/2]
|
inline |
◆ WebsocketsMessage() [2/2]
|
inline |
Definition at line 31 of file message.h.
Referenced by websockets::WebsocketsMessage::StreamBuilder::build(), and CreateFromFrame().
Member Function Documentation
◆ c_str()
|
inline |
◆ CreateFromFrame()
|
inlinestatic |
Definition at line 33 of file message.h.
References websockets::Complete, websockets::Continuation, websockets::Empty, websockets::First, websockets::internals::WebsocketsFrame::isBeginningOfFragmentsStream(), websockets::internals::WebsocketsFrame::isContinuesFragment(), websockets::internals::WebsocketsFrame::isEndOfFragmentsStream(), websockets::internals::WebsocketsFrame::isNormalUnfragmentedMessage(), websockets::Last, websockets::messageTypeFromOpcode(), websockets::internals::WebsocketsFrame::opcode, websockets::internals::WebsocketsFrame::payload, type(), and WebsocketsMessage().
◆ data()
|
inline |
Definition at line 79 of file message.h.
References websockets::internals::fromInternalString().
◆ isBinary()
|
inline |
Definition at line 61 of file message.h.
References websockets::Binary.
◆ isClose()
|
inline |
Definition at line 66 of file message.h.
References websockets::Close.
◆ isComplete()
|
inline |
Definition at line 72 of file message.h.
References websockets::Complete.
◆ isContinuation()
|
inline |
Definition at line 75 of file message.h.
References websockets::Continuation.
◆ isEmpty()
|
inline |
Definition at line 55 of file message.h.
References websockets::Empty.
◆ isFirst()
|
inline |
Definition at line 74 of file message.h.
References websockets::First.
◆ isLast()
|
inline |
Definition at line 76 of file message.h.
References websockets::Last.
◆ isPartial()
|
inline |
Definition at line 73 of file message.h.
References websockets::Complete.
◆ isPing()
|
inline |
Definition at line 63 of file message.h.
References websockets::Ping.
◆ isPong()
|
inline |
Definition at line 64 of file message.h.
References websockets::Pong.
◆ isText()
|
inline |
Definition at line 60 of file message.h.
References websockets::Text.
◆ length()
|
inline |
◆ rawData()
|
inline |
◆ role()
|
inline |
◆ type()
|
inline |
Definition at line 58 of file message.h.
Referenced by CreateFromFrame().
The documentation for this struct was generated from the following file:
- lib/communication/src/websockets/message.h