ark::comms::ThrottledWebsocketFrame

Defined in header “ark/comms/throttled_websocket_writer.hh”.


A structure representing a throttled websocket frame header.

Methods

  • void encode(uint8_t * data, size_t data_length)
    Forms a throttled websocket header. This will the header information to the given buffer. The size must be equal to at least ‘THROTTLED_WEBSOCKET_FRAME_HEADER_MAX_SIZE’.

  • void decode(const uint8_t * data, size_t data_length)
    Decodes a throttled websocket header. This will extract the sequence number from the header. THe data must be equal to at least ‘THROTTLED_WEBSOCKET_FRAME_HEADER_MAX_SIZE’ bytes, or this will throw.

Variables

  • ThrottledWebsocketFrameContent content
    The content of this frame.

  • uint16_t sequence_number
    Sequence number of this frame.