/Zephyr-latest/samples/net/sockets/http_get/src/ |
D | http_get.c | 55 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/ |
D | getaddrinfo.c | 95 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/ |
D | main.c | 292 .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/ |
D | sockets.c | 46 hints.ai_socktype = SOCK_STREAM; in tagoio_connect() 75 hints.ai_socktype, in tagoio_connect()
|
/Zephyr-latest/samples/net/sockets/big_http_download/src/ |
D | big_http_download.c | 90 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/ |
D | tftp-client.c | 44 hints.ai_socktype = SOCK_DGRAM; in tftp_init()
|
/Zephyr-latest/subsys/net/lib/sntp/ |
D | sntp_simple.c | 94 hints.ai_socktype = SOCK_DGRAM; in sntp_simple()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | netdb_h.c | 46 zassert_not_equal(-1, offsetof(struct addrinfo, ai_socktype)); in ZTEST()
|
/Zephyr-latest/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 1017 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/ |
D | nsos.h | 107 int ai_socktype; member
|
D | nsos_adapt.c | 976 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()
|
D | nsos_sockets.c | 1467 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/ |
D | eswifi_socket_offload.c | 720 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/ |
D | TSSLServerSocket.cpp | 130 serverSocket_ = socket(trybind->ai_family, trybind->ai_socktype, IPPROTO_TLS_1_2); in listen()
|
D | TSSLSocket.cpp | 111 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/ |
D | socket.h | 280 int ai_socktype; /**< Socket type, for example SOCK_STREAM or SOCK_DGRAM */ member
|
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/ |
D | main.c | 429 .ai_socktype = SOCK_STREAM, in resolve_broker_addr()
|
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/ |
D | main.c | 399 hints.ai_socktype = SOCK_STREAM; in get_mqtt_broker_addrinfo()
|
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/ |
D | mqtt_client.c | 443 .ai_socktype = SOCK_STREAM in app_mqtt_init()
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub.c | 179 hints.ai_socktype = SOCK_STREAM; in start_coap_client() 182 hints.ai_socktype = SOCK_STREAM; in start_coap_client()
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_mqtt.c | 135 .ai_socktype = SOCK_STREAM, in get_mqtt_broker_addrinfo()
|
/Zephyr-latest/subsys/mgmt/hawkbit/ |
D | hawkbit.c | 429 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/ |
D | lwm2m_message_handling.c | 3375 hints.ai_socktype = SOCK_DGRAM; in lwm2m_parse_peerinfo()
|