/net-tools-latest/libcoap/include/coap/ |
D | net.h | 40 coap_pdu_t *pdu; /**< the CoAP PDU to send */ 65 coap_pdu_t *sent, 66 coap_pdu_t *received, 224 coap_pdu_t *pdu); 243 coap_pdu_t *coap_new_error_response(coap_pdu_t *request, 264 coap_pdu_t *pdu); 285 coap_pdu_t *request, 309 coap_pdu_t *request, 329 coap_pdu_t *request); 349 coap_pdu_t *request) { in coap_send_rst() [all …]
|
D | pdu.h | 247 } coap_pdu_t; typedef 270 coap_pdu_t * coap_pdu_from_pbuf(struct pbuf *pbuf); 287 coap_pdu_t * 299 void coap_pdu_clear(coap_pdu_t *pdu, size_t size); 309 coap_pdu_t *coap_new_pdu(void); 311 void coap_delete_pdu(coap_pdu_t *); 327 coap_pdu_t *result); 342 int coap_add_token(coap_pdu_t *pdu, 354 size_t coap_add_option(coap_pdu_t *pdu, 366 unsigned char *coap_add_option_later(coap_pdu_t *pdu, [all …]
|
D | block.h | 91 int coap_get_block(coap_pdu_t *pdu, unsigned short type, coap_block_t *block); 115 coap_pdu_t *pdu, 130 int coap_add_block(coap_pdu_t *pdu,
|
D | option.h | 71 coap_opt_t *options_start(coap_pdu_t *pdu); 278 coap_opt_iterator_t *coap_option_iterator_init(coap_pdu_t *pdu, 313 coap_opt_t *coap_check_option(coap_pdu_t *pdu,
|
D | resource.h | 46 coap_pdu_t *, 48 coap_pdu_t * /* response */); 275 void coap_hash_request_uri(const coap_pdu_t *request, coap_key_t key);
|
D | lwippools.h | 53 LWIP_MEMPOOL(COAP_PDU, MEMP_NUM_COAPPDU, sizeof(coap_pdu_t), "COAP_PDU")
|
D | async.h | 87 coap_pdu_t *request,
|
D | debug.h | 68 void coap_show_pdu(const coap_pdu_t *);
|
/net-tools-latest/libcoap/src/ |
D | pdu.c | 29 coap_pdu_clear(coap_pdu_t *pdu, size_t size) { in coap_pdu_clear() 49 coap_pdu_t * 57 coap_pdu_t *result = coap_malloc_type(COAP_PDU, sizeof(coap_pdu_t)); in coap_pdu_from_pbuf() 63 memset(result, 0, sizeof(coap_pdu_t)); in coap_pdu_from_pbuf() 74 coap_pdu_t * 77 coap_pdu_t *pdu; in coap_pdu_init() 89 pdu = coap_malloc_type(COAP_PDU, sizeof(coap_pdu_t)); in coap_pdu_init() 98 pdu = (coap_pdu_t*)coap_malloc_type(COAP_PDU, sizeof(coap_pdu_t)); in coap_pdu_init() 118 coap_pdu_t * 120 coap_pdu_t *pdu; in coap_new_pdu() [all …]
|
D | block.c | 45 coap_get_block(coap_pdu_t *pdu, unsigned short type, coap_block_t *block) { in coap_get_block() 65 coap_pdu_t *pdu, size_t data_length) { in coap_write_block_opt() 119 coap_add_block(coap_pdu_t *pdu, unsigned int len, const unsigned char *data, in coap_add_block()
|
D | net.c | 445 coap_pdu_t *pdu, in coap_option_check_critical() 496 coap_transaction_id(const coap_address_t *peer, const coap_pdu_t *pdu, in coap_transaction_id() 537 coap_pdu_t *request) { in coap_send_ack() 538 coap_pdu_t *response; in coap_send_ack() 543 sizeof(coap_pdu_t)); in coap_send_ack() 557 coap_pdu_t *pdu) { in coap_send_impl() 588 coap_pdu_t *pdu) { in coap_send_impl() 619 coap_pdu_t *pdu) { in coap_send() 625 coap_pdu_t *request, in coap_send_error() 630 coap_pdu_t *response; in coap_send_error() [all …]
|
D | mem.c | 64 coap_pdu_t packet; /* try to convince the compiler to word-align this structure */ 71 MEMB(pdu_storage, coap_pdu_t, COAP_PDU_MAXCNT);
|
D | option.c | 25 options_start(coap_pdu_t *pdu) { in options_start() 120 coap_option_iterator_init(coap_pdu_t *pdu, coap_opt_iterator_t *oi, in coap_option_iterator_init() 209 coap_check_option(coap_pdu_t *pdu, unsigned short type, in coap_check_option()
|
D | debug.c | 375 coap_show_pdu(const coap_pdu_t *pdu) { in coap_show_pdu() 395 coap_option_iterator_init((coap_pdu_t *)pdu, &opt_iter, COAP_OPT_ALL); in coap_show_pdu() 458 if (coap_get_data((coap_pdu_t *)pdu, &data_len, &data)) { in coap_show_pdu()
|
/net-tools-latest/libcoap/tests/ |
D | test_error_response.c | 19 coap_pdu_t *pdu; /* Holds the request PDU for most tests */ 34 coap_pdu_t *response; in t_error_response1() 63 coap_pdu_t *response; in t_error_response2() 93 coap_pdu_t *response; in t_error_response3() 132 coap_pdu_t *response; in t_error_response4() 173 coap_pdu_t *response; in t_error_response5() 214 coap_pdu_t *response; in t_error_response6() 255 coap_pdu_t *response; in t_error_response7() 291 coap_pdu_t *response; in t_error_response8()
|
D | test_options.c | 433 coap_pdu_t pdu = { in t_iterate_option1() 458 coap_pdu_t pdu = { in t_iterate_option2() 484 coap_pdu_t pdu = { in t_iterate_option3() 526 coap_pdu_t pdu = { in t_iterate_option4() 567 coap_pdu_t pdu = { in t_iterate_option5() 599 coap_pdu_t pdu = { in t_iterate_option6() 643 coap_pdu_t pdu = { in t_iterate_option7() 689 coap_pdu_t pdu = { in t_iterate_option8() 719 coap_pdu_t pdu = { in t_iterate_option9() 749 coap_pdu_t pdu = { in t_iterate_option10()
|
D | test_wellknown.c | 24 coap_pdu_t *pdu; /* Holds the parsed PDU for most tests */ 162 coap_pdu_t *response; in t_wellknown4() 184 coap_pdu_t *response; in t_wellknown5() 213 coap_pdu_t *response; in t_wellknown6()
|
/net-tools-latest/libcoap/examples/ |
D | etsi_iot_01.c | 130 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_index() 131 coap_pdu_t *response) { in hnd_get_index() 148 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_resource() 149 coap_pdu_t *response) { in hnd_get_resource() 224 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_delete_resource() 225 coap_pdu_t *response) { in hnd_delete_resource() 240 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_post_test() 241 coap_pdu_t *response) { in hnd_post_test() 306 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_put_test() 307 coap_pdu_t *response) { in hnd_put_test() [all …]
|
D | coap-server.c | 73 coap_pdu_t *request UNUSED_PARAM, in hnd_get_index() 75 coap_pdu_t *response) { in hnd_get_index() 96 coap_pdu_t *request, in hnd_get_time() 98 coap_pdu_t *response) { in hnd_get_time() 163 coap_pdu_t *request, in hnd_put_time() 165 coap_pdu_t *response) { in hnd_put_time() 199 coap_pdu_t *request UNUSED_PARAM, in hnd_delete_time() 201 coap_pdu_t *response UNUSED_PARAM) { in hnd_delete_time() 214 coap_pdu_t *request, in hnd_get_async() 216 coap_pdu_t *response) { in hnd_get_async() [all …]
|
D | coap-rd.c | 100 coap_pdu_t *request UNUSED_PARAM, in hnd_get_resource() 102 coap_pdu_t *response) { in hnd_get_resource() 128 coap_pdu_t *request UNUSED_PARAM, in hnd_put_resource() 130 coap_pdu_t *response) { in hnd_put_resource() 136 coap_pdu_t *response; in hnd_put_resource() 206 coap_pdu_t *request UNUSED_PARAM, in hnd_delete_resource() 208 coap_pdu_t *response) { in hnd_delete_resource() 228 coap_pdu_t *request UNUSED_PARAM, in hnd_get_rd() 230 coap_pdu_t *response) { in hnd_get_rd() 355 make_rd(coap_address_t *peer UNUSED_PARAM, coap_pdu_t *pdu) { in make_rd() [all …]
|
D | tiny.c | 25 coap_pdu_t * 27 coap_pdu_t *pdu; in make_pdu() 103 coap_pdu_t *pdu; in main()
|
D | client.c | 131 static coap_pdu_t * 137 coap_pdu_t *pdu; in coap_new_request() 181 coap_pdu_t *pdu; in clear_obs() 309 check_token(coap_pdu_t *received) { in check_token() 318 coap_pdu_t *sent, in message_handler() 319 coap_pdu_t *received, in message_handler() 322 coap_pdu_t *pdu = NULL; in message_handler() 1034 coap_pdu_t *pdu; in main()
|
/net-tools-latest/libcoap/examples/contiki/ |
D | coap-observer.c | 98 coap_pdu_t *sent, in message_handler() 99 coap_pdu_t *received, in message_handler() 114 coap_pdu_t *request; in PROCESS_THREAD()
|
D | server.c | 94 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_time() 95 coap_pdu_t *response) { in hnd_get_time()
|
/net-tools-latest/ |
D | coap-client.c | 166 static coap_pdu_t *coap_new_request(coap_context_t *ctx, 744 static coap_pdu_t *create_pdu(struct client_data *user_data) in create_pdu() 746 coap_pdu_t *pdu; in create_pdu() 785 coap_pdu_t *pdu; in send_packets() 835 coap_pdu_t *pdu; in try_send() 1092 static inline int check_token(coap_pdu_t *received) in check_token() 1101 coap_pdu_t *sent, in is_our_own() 1102 coap_pdu_t *received) in is_our_own() 1116 static void add_options(coap_pdu_t *pdu) in add_options() 1152 static coap_pdu_t *coap_new_request(coap_context_t *ctx, in coap_new_request() [all …]
|