Lines Matching refs:request
537 coap_pdu_t *request) { in coap_send_ack() argument
541 if (request && request->hdr->type == COAP_MESSAGE_CON) { in coap_send_ack()
542 response = coap_pdu_init(COAP_MESSAGE_ACK, 0, request->hdr->id, in coap_send_ack()
625 coap_pdu_t *request, in coap_send_error() argument
633 assert(request); in coap_send_error()
636 response = coap_new_error_response(request, code, opts); in coap_send_error()
649 coap_pdu_t *request, in coap_send_message_type() argument
654 if (request) { in coap_send_message_type()
655 response = coap_pdu_init(type, 0, request->hdr->id, sizeof(coap_pdu_t)); in coap_send_message_type()
1032 coap_new_error_response(coap_pdu_t *request, unsigned char code, in coap_new_error_response() argument
1036 size_t size = sizeof(coap_hdr_t) + request->hdr->token_length; in coap_new_error_response()
1049 assert(request); in coap_new_error_response()
1052 type = request->hdr->type == COAP_MESSAGE_CON in coap_new_error_response()
1061 coap_option_iterator_init(request, &opt_iter, opts); in coap_new_error_response()
1097 response = coap_pdu_init(type, code, request->hdr->id, size); in coap_new_error_response()
1100 if (!coap_add_token(response, request->hdr->token_length, in coap_new_error_response()
1101 request->hdr->token)) { in coap_new_error_response()
1108 coap_option_iterator_init(request, &opt_iter, opts); in coap_new_error_response()
1147 coap_wellknown_response(coap_context_t *context, coap_pdu_t *request) { in coap_wellknown_response() argument
1158 resp = coap_pdu_init(request->hdr->type == COAP_MESSAGE_CON in coap_wellknown_response()
1162 request->hdr->id, COAP_MAX_PDU_SIZE); in coap_wellknown_response()
1168 if (!coap_add_token(resp, request->hdr->token_length, request->hdr->token)) { in coap_wellknown_response()
1173 query_filter = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter); in coap_wellknown_response()
1186 if (coap_get_block(request, COAP_OPTION_BLOCK2, &block)) { in coap_wellknown_response()
1333 no_response(coap_pdu_t *request, coap_pdu_t *response) { in no_response() argument
1338 assert(request); in no_response()
1341 nores = coap_check_option(request, COAP_OPTION_NORESPONSE, &opt_iter); in no_response()