Home
last modified time | relevance | path

Searched refs:COAP_PROTO_UDP (Results 1 – 20 of 20) sorted by relevance

/third_party/libcoap/tests/
Dtest_pdu.c30 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu1()
46 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu2()
63 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu3()
74 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu4()
79 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu4()
91 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu5()
113 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu6()
126 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu7()
151 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu8()
172 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu9()
[all …]
Dtest_error_response.c51 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response1()
80 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response2()
113 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response3()
152 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response4()
193 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response5()
234 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response6()
276 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response7()
317 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response8()
Dtest_session.c160 session = coap_new_client_session(ctx, &saddr, &laddr, COAP_PROTO_UDP); in t_session6()
185 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in t_session_tests_create()
Dtest_wellknown.c267 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in t_wkc_tests_create()
Dtest_sendqueue.c288 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in t_sendqueue_tests_create()
/third_party/libcoap/tests/oss-fuzz/
Dpdu_parse_target.c8 coap_pdu_parse(COAP_PROTO_UDP, data, size, pdu); in LLVMFuzzerTestOneInput()
12 coap_pdu_encode_header(pdu, COAP_PROTO_UDP); in LLVMFuzzerTestOneInput()
/third_party/libcoap/src/
Dcoap_session.c483 if (session->proto == COAP_PROTO_UDP) in coap_session_disconnected()
749 if (endpoint->proto == COAP_PROTO_UDP) in coap_endpoint_get_session()
823 case COAP_PROTO_UDP: in coap_session_create_client()
855 if (proto == COAP_PROTO_UDP || proto == COAP_PROTO_DTLS) { in coap_session_create_client()
893 if (session->proto == COAP_PROTO_UDP) { in coap_session_connect()
1341 if (proto==COAP_PROTO_UDP || proto==COAP_PROTO_DTLS) { in coap_new_endpoint()
1469 if (session->proto == COAP_PROTO_UDP) { in coap_session_str()
1496 if (endpoint->proto == COAP_PROTO_UDP) { in coap_endpoint_str()
Dcoap_io_lwip.c122 LWIP_ASSERT("Proto not supported for LWIP endpoints", proto == COAP_PROTO_UDP); in coap_new_endpoint()
Dpdu.c785 } else if (proto == COAP_PROTO_UDP || proto==COAP_PROTO_DTLS) { in coap_pdu_parse_header_size()
827 if (proto == COAP_PROTO_UDP || proto == COAP_PROTO_DTLS) { in coap_pdu_parse_header()
1131 if (proto == COAP_PROTO_UDP || proto == COAP_PROTO_DTLS) { in coap_pdu_encode_header()
Dnet.c586 coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP); in coap_new_context()
770 case COAP_PROTO_UDP: in coap_session_send_pdu()
1440 } else if (session->proto == COAP_PROTO_UDP) { in coap_handle_dgram_for_proto()
1514 case COAP_PROTO_UDP: in coap_write_session()
3422 if (endpoint->proto == COAP_PROTO_UDP) { in coap_join_mcast_group_intf()
/third_party/libcoap/examples/
Dtiny.c117 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in get_session()
Dcoap-rd.c742 ep_udp = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP); in get_context()
Dcoap-server.c935 COAP_PROTO_UDP : COAP_PROTO_TCP); in get_ongoing_proxy_session()
2311 ep_udp = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP); in get_context()
Dcoap-client.c1620 : scheme==COAP_URI_SCHEME_COAPS ? COAP_PROTO_DTLS : COAP_PROTO_UDP), in main()
/third_party/libcoap/include/coap3/
Dcoap_session.h35 #define COAP_PROTO_NOT_RELIABLE(p) ((p)==COAP_PROTO_UDP || (p)==COAP_PROTO_DTLS)
Dpdu.h289 COAP_PROTO_UDP, enumerator
/third_party/libcoap/man/
Dcoap_endpoint_client.txt.in92 COAP_PROTO_UDP
179 session = coap_new_client_session(context, NULL, &server, COAP_PROTO_UDP);
Dcoap_endpoint_server.txt.in125 COAP_PROTO_UDP
193 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_UDP);
Dcoap_session.txt.in138 COAP_PROTO_UDP
Dcoap_observe.txt.in265 ep = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP);