Lines Matching refs:rcvd
820 void coap_dispatch(coap_context_t *context, coap_queue_t *rcvd);
1505 coap_queue_t *sent, coap_queue_t *rcvd) { in handle_response() argument
1507 coap_send_ack(context, &rcvd->local_if, &rcvd->remote, rcvd->pdu); in handle_response()
1513 coap_cancel_all_messages(context, &rcvd->remote, in handle_response()
1514 rcvd->pdu->hdr->token, in handle_response()
1515 rcvd->pdu->hdr->token_length); in handle_response()
1519 context->response_handler(context, &rcvd->local_if, in handle_response()
1520 &rcvd->remote, sent ? sent->pdu : NULL, in handle_response()
1521 rcvd->pdu, rcvd->id); in handle_response()
1537 coap_dispatch(coap_context_t *context, coap_queue_t *rcvd) { argument
1554 switch (rcvd->pdu->hdr->type) {
1557 coap_remove_from_queue(&context->sendqueue, rcvd->id, &sent);
1559 if (rcvd->pdu->hdr->code == 0)
1578 coap_log(LOG_ALERT, "got RST for message %u\n", ntohs(rcvd->pdu->hdr->id));
1580 coap_log(LOG_ALERT, "got RST for message %u\n", uip_ntohs(rcvd->pdu->hdr->id));
1584 coap_remove_from_queue(&context->sendqueue, rcvd->id, &sent);
1591 if (coap_option_check_critical(context, rcvd->pdu, opt_filter) == 0)
1596 if (coap_option_check_critical(context, rcvd->pdu, opt_filter) == 0) {
1601 coap_new_error_response(rcvd->pdu, COAP_RESPONSE_CODE(402), opt_filter);
1606 if (coap_send(context, &rcvd->local_if, &rcvd->remote, response)
1620 if (handle_locally(context, rcvd)) {
1621 if (COAP_MESSAGE_IS_REQUEST(rcvd->pdu->hdr))
1622 handle_request(context, rcvd);
1623 else if (COAP_MESSAGE_IS_RESPONSE(rcvd->pdu->hdr))
1624 handle_response(context, sent, rcvd);
1627 COAP_RESPONSE_CLASS(rcvd->pdu->hdr->code),
1628 rcvd->pdu->hdr->code & 0x1f);
1630 if (!coap_is_mcast(&rcvd->local_if.addr)) {
1631 coap_send_message_type(context, &rcvd->local_if, &rcvd->remote,
1632 rcvd->pdu, COAP_MESSAGE_RST);
1639 coap_delete_node(rcvd);