Lines Matching refs:token

797                   pdu->token - pdu->hdr_size,
961 coap_binary_t *token;
971 token = coap_new_binary(session->max_token_size);
972 if (token == NULL) {
977 token->s[i] = (uint8_t)(i + 1);
979 coap_add_token(pdu, session->max_token_size, token->s);
980 coap_delete_binary(token);
1097 * Check validity of token length
1101 coap_log_warn("coap_send: PDU dropped as token too long (%zu > %" PRIu32 ")\n",
1311 /* See if this token is already in use for large body responses */
1319 /* Need to update token to server's version */
1357 /* Need to update the token as set up in the session->lg_xmit */
1465 data_len = pdu->used_size - (pdu->data - pdu->token);
1493 old_size - (pdu->data - pdu->token));
1769 q->pdu->token - q->pdu->hdr_size + session->partial_write,
1840 /* Need max space incase PDU is updated with updated token etc. */
1886 memcpy(session->partial_pdu->token - session->partial_pdu->hdr_size
1928 /* Need max space incase PDU is updated with updated token etc. */
1941 memcpy(session->partial_pdu->token - hdr_size, session->read_header, hdr_size + tok_ext_bytes);
2222 /* Need max space incase PDU is updated with updated token etc. */
2335 coap_bin_const_t *token) {
2337 * and use the specified token */
2348 coap_binary_equal(&q->pdu->actual_token, token)) {
2449 /* copy token */
2452 coap_log_debug("cannot add token to error response\n");
2577 * token specified in @p sent. Any observation relationship for
2578 * sent->session and the token are removed. Calling this function is
2582 * This function returns @c 0 when the token is unknown with this
2596 * Use token from sent and try to find a matching resource. Uh!
2686 /* Remove token/data from piggybacked acknowledgment PDU */
3226 /* If original request contained a token, and the registered
3228 * this is an empty ACK with a token, which is a malformed
3232 /* Remove token from otherwise-empty acknowledgment PDU */
3342 * same token. Matching on token potentially containing ext length bytes.
3363 /* Check to see if checking out extended token support */
3512 * Note - have to leave in oversize token as per
3519 /* Indicate no extended token support */
3699 /* Check to see if checking out extended token support */