Lines Matching refs:sent
578 /* Removing a resource may cause a NON unsolicited observe to be sent */
1295 * lg_crcv here as it can be built up based on sent PDU if there is a
2577 * token specified in @p sent. Any observation relationship for
2578 * sent->session and the token are removed. Calling this function is
2586 coap_cancel(coap_context_t *context, const coap_queue_t *sent) {
2590 (void)sent;
2596 * Use token from sent and try to find a matching resource. Uh!
2599 coap_cancel_all_messages(context, sent->session, &sent->pdu->actual_token);
2600 num_cancelled += coap_delete_observer(r, sent->session, &sent->pdu->actual_token);
2629 * a delayed separate response should be sent as the original requesting packet
2657 * RESPONSE_SEND when the response must be sent.
3081 * See if blocks need to be aggregated or next requests sent off
3204 /* Check for empty ACK - need to drop as already sent */
3338 coap_pdu_t *sent, coap_pdu_t *rcvd) {
3404 if (coap_handle_response_send_block(session, sent, rcvd)) {
3411 if (coap_handle_response_get_block(context, session, sent, rcvd,
3413 /* Next block transmitted, ack sent no need to inform app */
3422 if (context->response_handler(session, sent, rcvd,
3530 coap_queue_t *sent = NULL;
3607 /* find message id in sendqueue to stop retransmission and get sent */
3608 coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
3614 coap_delete_node(sent);
3629 coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
3631 if (sent && session->con_active) {
3643 /* if sent code was >= 64 the message might have been a
3646 if (sent && COAP_RESPONSE_CLASS(sent->pdu->code) == 2) {
3647 coap_touch_observer(context, sent->session, &sent->pdu->actual_token);
3653 if (sent) {
3656 if (sent->pdu->type == COAP_MESSAGE_CON &&
3658 coap_get_block_b(session, sent->pdu,
3659 COAP_PDU_IS_REQUEST(sent->pdu) ?
3664 if (COAP_PDU_IS_REQUEST(sent->pdu))
3665 coap_send_q_block1(session, block, sent->pdu,
3668 if (COAP_PDU_IS_RESPONSE(sent->pdu))
3669 coap_send_q_blocks(session, sent->pdu->lg_xmit, block,
3670 sent->pdu, COAP_SEND_SKIP_PDU);
3682 /* We have sent something the receiver disliked, so we remove
3721 coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
3723 if (sent) {
3724 coap_cancel(context, sent);
3727 if (sent->pdu->type==COAP_MESSAGE_CON && context->nack_handler) {
3728 coap_check_update_token(sent->session, sent->pdu);
3729 context->nack_handler(sent->session, sent->pdu,
3730 COAP_NACK_RST, sent->id);
3765 coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);
3819 handle_response(context, session, sent ? sent->pdu : NULL, pdu);
3852 if (sent) {
3854 coap_check_update_token(session, sent->pdu);
3855 context->nack_handler(session, sent->pdu, COAP_NACK_BAD_RESPONSE, sent->id);
3861 coap_delete_node(sent);