MQTT C Client Libraries Internals: frameData Struct Reference

| MQTT C Client Libraries Internals

Data Fields
frameData Struct Reference

builds a websocket frame for data transmission More...

## Data Fields
char * | wsbuf0
size_t | wsbuf0len

## Detailed Description

builds a websocket frame for data transmission

write a websocket header and will mask the payload in all the passed in buffers

Parameters

  [in,out] | net | network connection
  [in] | opcode | websocket opcode for the packet
  [in] | mask_data | whether to mask the data
  [in,out] | buf0 | first buffer, will write before this
  [in] | buf0len | size of first buffer
  [in] | count | number of payload buffers
  [in,out] | buffers | array of payload buffers
  [in] | buflens | array of payload buffer sizes
  [in] | freeData | array indicating to free payload buffers

Returns
  amount of data to write to socket

The documentation for this struct was generated from the following file:

- WebSocket.c