Lines Matching refs:data
62 #define COAP_BLOCK_SINGLE_BODY 0x02 /* Deliver the data as a single body */
102 * bytes of data for a block size of 1 << (@p szx + 4).
170 * @param data_length The length of the actual data that will be added the @p
195 * @param data_length The length of the actual data that will be added the @p
209 * data to @p pdu.
212 * @param len The length of @p data.
213 * @param data The source data to fill the block with.
221 const uint8_t *data,
226 * Adds the appropriate payload data of the body to the @p pdu.
229 * @param len The length of @p data.
230 * @param data The source data to fill the block with.
235 int coap_add_block_b_data(coap_pdu_t *pdu, size_t len, const uint8_t *data,
241 * @param body_data The pointer to the data for the body holding the
243 * @param length The length of @p data.
244 * @param data The payload data to update the body with.
245 * @param offset The offset of the @p data into the body.
252 const uint8_t *data, size_t offset, size_t total);
255 * Adds the appropriate part of @p data to the @p response pdu. If blocks are
257 * Adds a ETag option that is the hash of the entire data if the data is to be
266 * @param media_type The format of the data.
267 * @param maxage The maxmimum life of the data. If @c -1, then there
269 * @param length The total length of the data.
270 * @param data The entire data block to transmit.
278 const uint8_t *data);
281 * Callback handler for de-allocating the data based on @p app_ptr provided to
283 * data.
285 * @param session The session that this data is associated with
293 * Associates given data with the @p pdu that is passed as second parameter.
295 * This function will fail if data has already been added to the @p pdu.
297 * If all the data can be transmitted in a single PDU, this is functionally
299 * invoked after data transmission.
303 * If the data spans multiple PDUs, then the data will get transmitted using
306 * Once the body of data has been transmitted (or a failure occurred), then
308 * de-allocate the @p data based on @p app_data. It is the responsibility of
309 * the application not to change the contents of @p data until the data
317 * before the PDU is transmitted. The (potentially) initial data will get
323 * @param session The session to associate the data with.
324 * @param pdu The PDU to associate the data with.
325 * @param length The length of data to transmit.
326 * @param data The data to transmit.
327 * @param release_func The function to call to de-allocate @p data or @c NULL
337 const uint8_t *data,
342 * Associates given data with the @p response pdu that is passed as fourth
345 * This function will fail if data has already been added to the @p pdu.
347 * If all the data can be transmitted in a single PDU, this is functionally
349 * invoked after data transmission. The Content-Format, Max-Age and ETag
354 * If the data spans multiple PDUs, then the data will get transmitted using
357 * individual blocks. Once the body of data has been transmitted (or a
359 * application can de-allocate the @p data based on @p app_data. It is the
360 * responsibility of the application not to change the contents of @p data
361 * until the data transfer has completed.
373 * @param resource The resource the data is associated with.
378 * @param media_type The content format of the data.
379 * @param maxage The maxmimum life of the data. If @c -1, then there
382 * @param length The total length of the data.
383 * @param data The entire data block to transmit.
384 * @param release_func The function to call to de-allocate @p data or NULL if
400 const uint8_t *data,