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]netnetwork connection
[in]opcodewebsocket opcode for the packet
[in]mask_datawhether to mask the data
[in,out]buf0first buffer, will write before this
[in]buf0lensize of first buffer
[in]countnumber of payload buffers
[in,out]buffersarray of payload buffers
[in]buflensarray of payload buffer sizes
[in]freeDataarray indicating to free payload buffers
Returns
amount of data to write to socket

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