Home
last modified time | relevance | path

Searched refs:coap_pdu_t (Results 1 – 25 of 57) sorted by relevance

123

/third_party/libcoap/include/coap3/
Dpdu.h281 coap_pdu_t * coap_pdu_from_pbuf(struct pbuf *pbuf);
359 coap_pdu_t *coap_pdu_init(coap_pdu_type_t type, coap_pdu_code_t code,
372 coap_pdu_t *coap_new_pdu(coap_pdu_type_t type, coap_pdu_code_t code,
383 void coap_delete_pdu(coap_pdu_t *pdu);
398 coap_pdu_t *
399 coap_pdu_duplicate(const coap_pdu_t *old_pdu,
418 int coap_add_token(coap_pdu_t *pdu,
443 size_t coap_add_option(coap_pdu_t *pdu,
459 int coap_add_data(coap_pdu_t *pdu,
475 uint8_t *coap_add_data_after(coap_pdu_t *pdu, size_t len);
[all …]
Dcoap_pdu_internal.h94 struct coap_pdu_t { struct
140 int coap_pdu_resize(coap_pdu_t *pdu, size_t new_size); argument
151 int coap_pdu_check_resize(coap_pdu_t *pdu, size_t new_size);
187 int coap_pdu_parse_header(coap_pdu_t *pdu, coap_proto_t proto);
200 int coap_pdu_parse_opt(coap_pdu_t *pdu);
219 coap_pdu_t *pdu);
230 void coap_pdu_clear(coap_pdu_t *pdu, size_t size);
240 int coap_remove_option(coap_pdu_t *pdu, coap_option_num_t number);
254 size_t coap_insert_option(coap_pdu_t *pdu, coap_option_num_t number,
268 size_t coap_update_option(coap_pdu_t *pdu,
[all …]
Dcoap_block_internal.h89 coap_pdu_t pdu; /**< skeletal PDU */
118 coap_pdu_t pdu; /**< skeletal PDU */
152 coap_pdu_t *pdu);
167 coap_pdu_t *pdu,
168 coap_pdu_t *response,
174 coap_pdu_t *pdu,
175 coap_pdu_t *response,
183 int coap_handle_response_send_block(coap_session_t *session, coap_pdu_t *rcvd);
187 coap_pdu_t *sent,
188 coap_pdu_t *rcvd,
[all …]
Dnet.h55 const coap_pdu_t *sent,
56 const coap_pdu_t *received,
68 const coap_pdu_t *sent,
80 const coap_pdu_t *received,
91 const coap_pdu_t *received,
388 coap_pdu_t *coap_new_error_response(const coap_pdu_t *request,
408 const coap_pdu_t *request,
424 coap_send_message_type(coap_session_t *session, const coap_pdu_t *request,
438 coap_mid_t coap_send_ack(coap_session_t *session, const coap_pdu_t *request);
452 coap_send_rst(coap_session_t *session, const coap_pdu_t *request) { in coap_send_rst()
[all …]
Dblock.h98 int coap_get_block(const coap_pdu_t *pdu, coap_option_num_t number,
123 coap_pdu_t *pdu,
138 int coap_add_block(coap_pdu_t *pdu,
181 coap_add_data_blocked_response(const coap_pdu_t *request,
182 coap_pdu_t *response,
241 coap_pdu_t *pdu,
298 const coap_pdu_t *request,
299 coap_pdu_t *response,
Dcoap_cache.h70 const coap_pdu_t *pdu,
100 const coap_pdu_t *pdu,
151 const coap_pdu_t *pdu,
192 const coap_pdu_t *pdu,
203 const coap_pdu_t *coap_cache_get_pdu(const coap_cache_entry_t *cache_entry);
Dcoap_net_internal.h39 coap_pdu_t *pdu; /**< the CoAP PDU to send */
279 coap_pdu_t *pdu);
313 coap_pdu_t *pdu,
327 coap_pdu_t *coap_wellknown_response(coap_context_t *context,
329 coap_pdu_t *request);
361 coap_mid_t coap_send_internal(coap_session_t *session, coap_pdu_t *pdu);
Dcoap_forward_decls.h81 typedef struct coap_pdu_t coap_pdu_t; typedef
Doption.h195 coap_opt_iterator_t *coap_option_iterator_init(const coap_pdu_t *pdu,
230 coap_opt_t *coap_check_option(const coap_pdu_t *pdu,
362 int coap_add_optlist_pdu(coap_pdu_t *pdu, coap_optlist_t** optlist_chain);
Dcoap_subscribe_internal.h57 coap_pdu_t *pdu; /**< PDU to use for additional requests */
99 const coap_pdu_t *pdu);
Duri.h162 coap_string_t *coap_get_query(const coap_pdu_t *request);
172 coap_string_t *coap_get_uri_path(const coap_pdu_t *request);
Dcoap_session_internal.h83 coap_pdu_t *partial_pdu; /**< incomplete incoming pdu */
242 ssize_t coap_session_send_pdu(coap_session_t *session, coap_pdu_t *pdu);
245 coap_session_delay_pdu(coap_session_t *session, coap_pdu_t *pdu,
/third_party/libcoap/src/
Dpdu.c37 coap_pdu_clear(coap_pdu_t *pdu, size_t size) { in coap_pdu_clear()
60 coap_pdu_t *
63 coap_pdu_t *pdu; in coap_pdu_from_pbuf()
70 pdu = coap_malloc_type(COAP_PDU, sizeof(coap_pdu_t) ); in coap_pdu_from_pbuf()
86 coap_pdu_t *
89 coap_pdu_t *pdu; in coap_pdu_init()
95 pdu = coap_malloc_type(COAP_PDU, sizeof(coap_pdu_t)); in coap_pdu_init()
131 coap_pdu_t *
134 coap_pdu_t *pdu = coap_pdu_init(type, code, coap_new_message_id(session), in coap_new_pdu()
142 coap_delete_pdu(coap_pdu_t *pdu) { in coap_delete_pdu()
[all …]
Dcoap_cache.c69 const coap_pdu_t *pdu, in coap_cache_derive_key_w_ignore()
130 const coap_pdu_t *pdu, in coap_cache_derive_key()
143 coap_new_cache_entry(coap_session_t *session, const coap_pdu_t *pdu, in coap_new_cache_entry()
164 memcpy(entry->pdu, pdu, offsetof(coap_pdu_t, token)); in coap_new_cache_entry()
202 const coap_pdu_t *request, in coap_cache_get_by_pdu()
237 const coap_pdu_t *
Dblock.c37 coap_get_block(const coap_pdu_t *pdu, coap_option_num_t number, in coap_get_block()
67 coap_pdu_t *pdu, size_t data_length) { in coap_write_block_opt()
127 coap_add_block(coap_pdu_t *pdu, size_t len, const uint8_t *data, in coap_add_block()
144 coap_add_data_blocked_response(const coap_pdu_t *request, in coap_add_data_blocked_response()
145 coap_pdu_t *response, in coap_add_data_blocked_response()
303 coap_pdu_t * pdu = coap_pdu_duplicate(&cq->pdu, in coap_cancel_observe()
334 coap_pdu_t *pdu, in coap_add_data_large_internal()
628 coap_pdu_t *pdu, in coap_add_data_large_request()
640 const coap_pdu_t *request, in coap_add_data_large_response()
641 coap_pdu_t *response, in coap_add_data_large_response()
[all …]
/third_party/libcoap/examples/
Detsi_iot_01.c97 coap_pdu_t *request COAP_UNUSED,
99 coap_pdu_t *response) {
119 const coap_pdu_t *request, in hnd_get_resource()
121 coap_pdu_t *response) { in hnd_get_resource()
144 const coap_pdu_t *request COAP_UNUSED, in hnd_delete_resource()
146 coap_pdu_t *response) { in hnd_delete_resource()
162 const coap_pdu_t *request, in hnd_post_test()
164 coap_pdu_t *response) { in hnd_post_test()
228 const coap_pdu_t *request, in hnd_put_test()
230 coap_pdu_t *response) { in hnd_put_test()
[all …]
Dcoap-rd.c120 const coap_pdu_t *request COAP_UNUSED, in hnd_get_resource()
122 coap_pdu_t *response) { in hnd_get_resource()
144 const coap_pdu_t *request COAP_UNUSED, in hnd_put_resource()
146 coap_pdu_t *response) { in hnd_put_resource()
152 coap_pdu_t *response; in hnd_put_resource()
221 const coap_pdu_t *request COAP_UNUSED, in hnd_delete_resource()
223 coap_pdu_t *response) { in hnd_delete_resource()
239 const coap_pdu_t *request COAP_UNUSED, in hnd_get_rd()
241 coap_pdu_t *response) { in hnd_get_rd()
368 make_rd(const coap_pdu_t *pdu) { in make_rd()
[all …]
Dcoap-server.c234 const coap_pdu_t *request, in hnd_get_index()
236 coap_pdu_t *response) { in hnd_get_index()
248 const coap_pdu_t *request, in hnd_get_fetch_time()
250 coap_pdu_t *response) { in hnd_get_fetch_time()
306 const coap_pdu_t *request, in hnd_put_time()
308 coap_pdu_t *response) { in hnd_put_time()
354 const coap_pdu_t *request COAP_UNUSED, in hnd_delete_time()
356 coap_pdu_t *response COAP_UNUSED) { in hnd_delete_time()
370 const coap_pdu_t *request, in hnd_get_async()
372 coap_pdu_t *response) { in hnd_get_async()
[all …]
Dtiny.c54 static coap_pdu_t *
56 coap_pdu_t *pdu; in make_pdu()
139 coap_pdu_t *pdu; in main()
/third_party/libcoap/tests/
Dtest_error_response.c19 static 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()
Dtest_uri.c334 coap_pdu_t pdu = { in t_parse_uri13()
435 coap_pdu_t pdu = { in t_parse_uri18()
460 coap_pdu_t pdu = { in t_parse_uri19()
480 coap_pdu_t pdu = { in t_parse_uri20()
501 coap_pdu_t pdu = { in t_parse_uri21()
524 coap_pdu_t pdu = { in t_parse_uri22()
545 coap_pdu_t pdu = { in t_parse_uri23()
/third_party/libcoap/doc/
Dupgrade_4.2.1_4.3.0.txt48 coap_pdu_t *request,
51 coap_pdu_t *response) {
56 const coap_pdu_t *request,
58 coap_pdu_t *response) {
82 coap_pdu_t *sent,
83 coap_pdu_t *received,
88 const coap_pdu_t *sent,
89 const coap_pdu_t *received,
111 coap_pdu_t *sent,
117 const coap_pdu_t *sent,
[all …]
/third_party/libcoap/man/
Dcoap_handler.txt.in71 const coap_pdu_t *incoming_pdu,
73 coap_pdu_t *response_pdu);
101 const coap_pdu_t *sent,
102 const coap_pdu_t *received,
123 const coap_pdu_t *sent,
144 const coap_pdu_t *received,
156 const coap_pdu_t *received,
205 coap_pdu_t *request, coap_string_t *query, coap_pdu_t *response) {
256 static int check_token(coap_pdu_t *received) {
267 coap_pdu_t *sent, coap_pdu_t *received, const coap_mid_t mid) {
Dcoap_resource.txt.in199 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
226 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
240 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
255 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
317 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
337 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
365 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
414 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
/third_party/libcoap/examples/contiki/
Dcoap-observer.c97 coap_pdu_t *sent, in message_handler()
98 coap_pdu_t *received, in message_handler()
113 coap_pdu_t *request; in PROCESS_THREAD()

123