Lines Matching defs:token
102 * token, if any, follows the fixed size header, then optional options until
106 * <---header--->|<---token---><---options--->0xff<---payload--->
108 * header is addressed with a negative offset to token, its maximum size is
111 * allocated buffer always starts max_hdr_size before token.
113 * options starts at token + e_token_length.
114 * payload starts at data, its length is used_size - (data - token).
116 * alloc_size, used_size and max_size are the offsets from token.
132 coap_bin_const_t actual_token; /**< Actual token in pdu */
133 size_t alloc_size; /**< allocated storage for token, options and
135 size_t used_size; /**< used bytes of storage for token, options and
137 size_t max_size; /**< maximum size for token, options and payload,
139 uint8_t *token; /**< first byte of token (or extended length bytes
204 * @return PDU size including token on success or @c 0 on error.
223 * This function only parses the token and options, up to the payload start
314 * @return Number of header bytes prepended before pdu->token or 0 on error.
320 * Updates token in @p pdu with length @p len and @p data.
323 * @param pdu The PDU where the token is to be updated.
324 * @param len The length of the new token.
325 * @param data The token to add.