Home
last modified time | relevance | path

Searched refs:ai_socktype (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c55 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
77 hints.ai_socktype = SOCK_STREAM; in main()
95 sock = socket(res->ai_family, res->ai_socktype, IPPROTO_TLS_1_2); in main()
97 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c95 if (state->hints->ai_socktype) { in dns_resolve_cb()
96 socktype = state->hints->ai_socktype; in dns_resolve_cb()
100 ai->ai_socktype = socktype; in dns_resolve_cb()
208 if (hints->ai_socktype == SOCK_DGRAM) { in getaddrinfo_null_host()
209 res->ai_socktype = SOCK_DGRAM; in getaddrinfo_null_host()
212 res->ai_socktype = SOCK_STREAM; in getaddrinfo_null_host()
372 if (hints->ai_socktype == SOCK_DGRAM) { in try_resolve_literal_addr()
398 res->ai_socktype = socktype; in try_resolve_literal_addr()
/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c292 .ai_socktype = SOCK_STREAM in ZTEST()
301 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
310 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
314 hints.ai_socktype = SOCK_DGRAM; in ZTEST()
320 zassert_equal(res->ai_socktype, SOCK_DGRAM, ""); in ZTEST()
341 .ai_socktype = SOCK_STREAM in ZTEST()
351 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
382 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
407 hints.ai_socktype = SOCK_DGRAM; in ZTEST()
414 zassert_equal(res->ai_socktype, SOCK_DGRAM, ""); in ZTEST()
[all …]
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dsockets.c46 hints.ai_socktype = SOCK_STREAM; in tagoio_connect()
75 hints.ai_socktype, in tagoio_connect()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c90 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
265 sock = socket(ai->ai_family, ai->ai_socktype, IPPROTO_TLS_1_2); in download()
271 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in download()
432 hints.ai_socktype = SOCK_STREAM; in main()
/Zephyr-latest/samples/net/tftp_client/src/
Dtftp-client.c44 hints.ai_socktype = SOCK_DGRAM; in tftp_init()
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp_simple.c94 hints.ai_socktype = SOCK_DGRAM; in sntp_simple()
/Zephyr-latest/tests/posix/headers/src/
Dnetdb_h.c46 zassert_not_equal(-1, offsetof(struct addrinfo, ai_socktype)); in ZTEST()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c1017 ai->ai_socktype = (sl_ai->ai_socktype == SLNETSOCK_SOCK_DGRAM ? in set_addr_info()
1087 if (hints->ai_socktype == 0) { in simplelink_getaddrinfo()
1088 sl_hints.ai_socktype = 0; in simplelink_getaddrinfo()
1090 sl_hints.ai_socktype = in simplelink_getaddrinfo()
1091 (hints->ai_socktype == SOCK_DGRAM ? in simplelink_getaddrinfo()
/Zephyr-latest/drivers/net/
Dnsos.h107 int ai_socktype; member
Dnsos_adapt.c976 ret = socket_type_to_nsos_mid(res_p->ai_socktype, &wrap->addrinfo_mid.ai_socktype); in addrinfo_to_nsos_mid()
1038 ret = socket_type_from_nsos_mid(hints_mid->ai_socktype, &hints.ai_socktype); in nsos_adapt_getaddrinfo()
Dnsos_sockets.c1467 wrap->addrinfo.ai_socktype = res_p->ai_socktype; in addrinfo_from_nsos_mid()
1505 hints_mid.ai_socktype = hints->ai_socktype; in nsos_getaddrinfo()
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c720 ai->ai_socktype = hints ? hints->ai_socktype : SOCK_STREAM; in eswifi_off_getaddrinfo()
721 ai->ai_protocol = ai->ai_socktype == SOCK_STREAM ? IPPROTO_TCP : IPPROTO_UDP; in eswifi_off_getaddrinfo()
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLServerSocket.cpp130 serverSocket_ = socket(trybind->ai_family, trybind->ai_socktype, IPPROTO_TLS_1_2); in listen()
DTSSLSocket.cpp111 socket_ = socket(res->ai_family, res->ai_socktype, ctx_->protocol); in openSecConnection()
292 hints.ai_socktype = SOCK_STREAM; in open()
/Zephyr-latest/include/zephyr/net/
Dsocket.h280 int ai_socktype; /**< Socket type, for example SOCK_STREAM or SOCK_DGRAM */ member
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c429 .ai_socktype = SOCK_STREAM, in resolve_broker_addr()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c399 hints.ai_socktype = SOCK_STREAM; in get_mqtt_broker_addrinfo()
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c443 .ai_socktype = SOCK_STREAM in app_mqtt_init()
/Zephyr-latest/subsys/mgmt/updatehub/
Dupdatehub.c179 hints.ai_socktype = SOCK_STREAM; in start_coap_client()
182 hints.ai_socktype = SOCK_STREAM; in start_coap_client()
/Zephyr-latest/subsys/shell/backends/
Dshell_mqtt.c135 .ai_socktype = SOCK_STREAM, in get_mqtt_broker_addrinfo()
/Zephyr-latest/subsys/mgmt/hawkbit/
Dhawkbit.c429 hints.ai_socktype = SOCK_STREAM; in start_http_client()
432 hints.ai_socktype = SOCK_STREAM; in start_http_client()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_message_handling.c3375 hints.ai_socktype = SOCK_DGRAM; in lwm2m_parse_peerinfo()