Home
last modified time | relevance | path

Searched refs:coap_opt_t (Results 1 – 16 of 16) sorted by relevance

/net-tools-latest/libcoap/include/coap/
Doption.h25 typedef unsigned char coap_opt_t; typedef
26 #define PCHAR(p) ((coap_opt_t *)(p))
47 size_t coap_opt_parse(const coap_opt_t *opt,
60 size_t coap_opt_size(const coap_opt_t *opt);
71 coap_opt_t *options_start(coap_pdu_t *pdu);
79 ((coap_opt_t *)((unsigned char *)(opt) + COAP_OPT_SIZE(opt)))
258 coap_opt_t *next_option; /**< pointer to the unparsed next option */
298 coap_opt_t *coap_option_next(coap_opt_iterator_t *oi);
313 coap_opt_t *coap_check_option(coap_pdu_t *pdu,
331 size_t coap_opt_setheader(coap_opt_t *opt,
[all …]
Dblock.h58 unsigned int coap_opt_block_num(const coap_opt_t *block_opt);
71 coap_opt_block_set_m(coap_opt_t *block_opt, int m) { in coap_opt_block_set_m()
Dresource.h391 coap_opt_t *);
/net-tools-latest/libcoap/tests/
Dtest_options.c241 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 0, 0); in t_encode_option1()
253 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5, 268); in t_encode_option2()
265 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 14, 1); in t_encode_option3()
277 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 268, 184); in t_encode_option4()
289 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5133, 268); in t_encode_option5()
301 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 65535, 65535); in t_encode_option6()
314 result = coap_opt_encode((coap_opt_t *)buf, sizeof(buf), 3, in t_encode_option7()
329 result = coap_opt_encode((coap_opt_t *)buf, 8, 15, in t_encode_option8()
334 result = coap_opt_encode((coap_opt_t *)buf, 1, 15, in t_encode_option8()
348 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 1); in t_access_option1()
[all …]
/net-tools-latest/libcoap/src/
Doption.c24 coap_opt_t *
31 coap_opt_t *opt = pdu->hdr->token + pdu->hdr->token_length; in options_start()
39 coap_opt_parse(const coap_opt_t *opt, size_t length, coap_option_t *result) { in coap_opt_parse()
41 const coap_opt_t *opt_start = opt; /* store where parsing starts */ in coap_opt_parse()
158 coap_opt_t *
161 coap_opt_t *current_opt = NULL; in coap_option_next()
208 coap_opt_t *
222 coap_opt_delta(const coap_opt_t *opt) { in coap_opt_delta()
251 coap_opt_length(const coap_opt_t *opt) { in coap_opt_length()
286 coap_opt_value(coap_opt_t *opt) { in coap_opt_value()
[all …]
Dblock.c26 coap_opt_block_num(const coap_opt_t *block_opt) { in coap_opt_block_num()
47 coap_opt_t *option; in coap_get_block()
Dpdu.c173 coap_opt_t *opt; in coap_add_option()
205 coap_opt_t *opt; in coap_add_option_later()
322 next_option_safe(coap_opt_t **optp, size_t *length) { in next_option_safe()
342 coap_opt_t *opt; in coap_pdu_parse()
Dresource.c164 coap_opt_t *query_filter __attribute__ ((unused))) {
168 size_t offset, coap_opt_t *query_filter) {
386 coap_opt_t *option;
Dnet.c1038 coap_opt_t *option; in coap_new_error_response()
1129 get_wkc_len(coap_context_t *context, coap_opt_t *query_filter) { in get_wkc_len()
1155 coap_opt_t *query_filter; in coap_wellknown_response()
1334 coap_opt_t *nores; in no_response()
1427 coap_opt_t *observe = NULL; in handle_request()
Ddebug.c380 coap_opt_t *option; in coap_show_pdu()
/net-tools-latest/libcoap/examples/
Detsi_iot_01.c243 coap_opt_t *option; in hnd_post_test()
309 coap_opt_t *option; in hnd_put_test()
377 coap_opt_t *q; in hnd_get_query()
414 coap_opt_t *option; in hnd_get_separate()
Dcoap-rd.c135 coap_opt_t *token, *etag; in hnd_put_resource()
359 coap_opt_t *etag; in make_rd()
397 coap_opt_t *query; in hnd_post_rd()
Dcoap-server.c100 coap_opt_t *option; in hnd_get_time()
218 coap_opt_t *option; in hnd_get_async()
Dclient.c323 coap_opt_t *block_opt; in message_handler()
/net-tools-latest/libcoap/examples/contiki/
Dserver.c97 coap_opt_t *option; in hnd_get_time()
/net-tools-latest/
Dcoap-client.c1209 coap_opt_t *block_opt) in read_blocks()
1266 static coap_opt_t *get_block(coap_pdu_t *pdu, coap_opt_iterator_t *opt_iter) in get_block()
1343 coap_opt_t *block_opt; in coap_message_handler()