Lines Matching defs:response
142 coap_pdu_t *response) {
146 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
148 coap_add_option(response,
155 coap_add_option(response, COAP_OPTION_ETAG, rd->etag_len, rd->etag);
158 coap_add_data(response, rd->data.length, rd->data.s);
166 coap_pdu_t *response) {
168 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_IMPLEMENTED);
172 coap_pdu_t *response;
218 /* FIXME: do not create a new response but use the old one instead */
219 response = coap_pdu_init(type, code, request->hdr->id, size);
221 if (!response) {
222 coap_log_debug("cannot create response for mid=0x%x\n",
228 coap_add_token(response, request->hdr->token_length, request->hdr->token);
230 if (coap_send(ctx, peer, response) == COAP_INVALID_MID) {
231 coap_log_debug("hnd_get_rd: cannot send response for mid=0x%x\n",
242 coap_pdu_t *response) {
252 coap_pdu_set_code(response, COAP_RESPONSE_CODE_DELETED);
260 coap_pdu_t *response) {
263 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT);
265 coap_add_option(response,
271 coap_add_option(response,
388 coap_pdu_t *response) {
400 coap_pdu_set_code(response, COAP_RESPONSE_CODE_INTERNAL_ERROR);
504 /* FIXME: send error response and delete r */
511 /* create response */
513 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CREATED);
524 coap_add_option(response,