CoAP PDU parsing context structure. More...
CoAP PDU parsing context structure.
When this struct is used to assemble the header,
payload is used as the write pointer and
payload_len contains the number of free bytes left in then packet buffer pointed to by coap_pkt_t::hdr
When the header was written,
payload must not be changed, it must remain pointing to the end of the header.
payload_len must then be set to the size of the payload that was further copied into the packet buffer, after the header.
coap_pkt_t::snips can be used to attach further payload buffers without copying them into the CoAP packet buffer. If there are any, they will be attached in order after the last payload byte (or header byte) in the original CoAP packet buffer.
Definition at line 226 of file nanocoap.h.
Public Member Functions
|BITFIELD (opt_crit, CONFIG_NANOCOAP_NOPTS_MAX)|
|unhandled critical option |
|pointer to raw packet |
|pointer to end of the header |
|payload snips (optional) |
|length of payload |
|length of options array |
|option offset array |