Home
last modified time | relevance | path

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

12

/aosp12/system/core/libcutils/
H A Dsocket_network_client_windows.cpp41 hints.ai_socktype = type; in socket_network_client()
54 SOCKET sock = socket(address->ai_family, address->ai_socktype, in socket_network_client()
H A Dsocket_network_client_unix.cpp51 hints.ai_socktype = type; in socket_network_client_timeout()
/aosp12/system/netd/tests/
H A Dnetd_client_test.cpp71 .ai_socktype = SOCK_DGRAM, in expectHasNetworking()
94 .ai_socktype = SOCK_DGRAM, in expectNoNetworking()
H A Dbinder_test.cpp797 .ai_socktype = SOCK_STREAM, in TEST_F()
897 .ai_socktype = SOCK_DGRAM, in interfaceHasAddress()
/aosp12/packages/modules/DnsResolver/tests/dns_responder/
H A Ddns_tls_frontend.cpp100 .ai_socktype = SOCK_STREAM, in startServer()
113 android::base::unique_fd s(socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)); in startServer()
136 addrinfo backend_ai_hints{.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in startServer()
146 backend_socket_.reset(socket(backend_ai_res->ai_family, backend_ai_res->ai_socktype, in startServer()
H A Ddns_responder.cpp1216 .ai_socktype = socket_type, in createListeningSocket()
1229 socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in createListeningSocket()
/aosp12/bionic/tests/
H A Dnetdb_test.cpp57 if (p->ai_socktype == SOCK_STREAM) { in TEST()
60 } else if (p->ai_socktype == SOCK_DGRAM) { in TEST()
74 ASSERT_EQ(SOCK_STREAM, ai->ai_socktype); in TEST()
84 hints.ai_socktype = SOCK_STREAM; in TEST()
95 ASSERT_EQ(SOCK_STREAM, tai->ai_socktype); in TEST()
/aosp12/packages/modules/DnsResolver/
H A Dgetaddrinfo.cpp295 switch (hints->ai_socktype) { in validateHints()
305 if (hints->ai_socktype == ANY || hints->ai_protocol == ANY) return 0; in validateHints()
312 if (hints->ai_socktype == ex.e_socktype && hints->ai_protocol != ex.e_protocol) { in validateHints()
363 if (!MATCH(ai.ai_socktype, ex.e_socktype, WILD_SOCKTYPE(ex))) continue; in android_getaddrinfofornetcontext()
368 if (tmp.ai_socktype == ANY && ex.e_socktype != ANY) tmp.ai_socktype = ex.e_socktype; in android_getaddrinfofornetcontext()
372 << " ai_socktype=" << tmp.ai_socktype << " ai_protocol=" << tmp.ai_protocol; in android_getaddrinfofornetcontext()
436 if (!MATCH(ai.ai_socktype, ex.e_socktype, WILD_SOCKTYPE(ex))) continue; in resolv_getaddrinfo()
441 if (tmp.ai_socktype == ANY && ex.e_socktype != ANY) tmp.ai_socktype = ex.e_socktype; in resolv_getaddrinfo()
445 << " ai_socktype=" << tmp.ai_socktype << " ai_protocol=" << tmp.ai_protocol; in resolv_getaddrinfo()
729 switch (ai->ai_socktype) { in get_port()
[all …]
H A DDnsProxyListener.cpp468 << " " << ai->ai_socktype << " " << ai->ai_protocol; in logDnsQueryResult()
658 sendBE32(c, ai->ai_socktype) && sendBE32(c, ai->ai_protocol); in sendaddrinfo()
825 int ai_socktype = strtol(argv[5], nullptr, 10); in runCommand() local
839 if (ai_flags != -1 || ai_family != -1 || ai_socktype != -1 || ai_protocol != -1) { in runCommand()
843 hints->ai_socktype = ai_socktype; in runCommand()
H A Dres_cache.cpp1590 .ai_socktype = SOCK_DGRAM, in isValidServer()
/aosp12/bionic/libc/dns/net/
H A Dgetaddrinfo.c437 hints == NULL ? -1 : hints->ai_socktype, in android_getaddrinfo_proxy()
496 readBE32(proxy, &ai->ai_socktype) && in android_getaddrinfo_proxy()
608 pai->ai_socktype = ANY; in android_getaddrinfofornetcontext()
648 if (pai->ai_socktype == ex->e_socktype in android_getaddrinfofornetcontext()
701 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) in android_getaddrinfofornetcontext()
702 pai->ai_socktype = ex->e_socktype; in android_getaddrinfofornetcontext()
752 if (!MATCH(pai->ai_socktype, ex->e_socktype, in android_getaddrinfofornetcontext()
761 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) in android_getaddrinfofornetcontext()
762 pai->ai_socktype = ex->e_socktype; in android_getaddrinfofornetcontext()
1164 switch (ai->ai_socktype) { in get_port()
[all …]
/aosp12/packages/modules/DnsResolver/tests/
H A Dresolv_unit_test.cpp211 .ai_socktype = ANY, in TEST_F()
252 .ai_socktype = socktype, in TEST_F()
311 .ai_socktype = socktype, in TEST_F()
337 int ai_socktype; in TEST_F() member
343 return StringPrintf("0x%x/%d/%d/%s", ai_flags, ai_family, ai_socktype, in TEST_F()
386 .ai_socktype = config.ai_socktype, in TEST_F()
991 const addrinfo hints = {.ai_family = family, .ai_socktype = SOCK_STREAM}; in TEST_F()
H A Dresolv_gold_test.cpp195 .ai_socktype = args.socktype(), in VerifyGetAddrInfo()
379 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F()
H A Dresolv_integration_test.cpp810 .ai_socktype = SOCK_PACKET, in TEST_F()
1132 const addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_STREAM}; in TEST_F()
1467 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F()
1722 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
2989 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3043 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3075 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3380 .ai_socktype = 0, // any type in TEST_F()
5172 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
5768 const addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_DGRAM}; in TEST_F()
[all …]
H A Ddnsresolver_binder_test.cpp397 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
/aosp12/system/extras/multinetwork/
H A Ddnschk.cpp41 .ai_socktype = SOCK_DGRAM, in main()
H A Dhttpurl.cpp112 .ai_socktype = SOCK_STREAM, in resolveHostname()
/aosp12/packages/modules/Connectivity/tests/cts/net/jni/
H A DNativeMultinetworkJni.cpp401 .ai_socktype = SOCK_DGRAM, in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
417 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
420 res->ai_family, res->ai_socktype, res->ai_protocol, errno); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
/aosp12/frameworks/native/libs/binder/
H A DRpcSocketAddress.h94 .ai_socktype = SOCK_STREAM, in getAddrInfo()
/aosp12/bionic/libc/include/
H A Dnetdb.h113 int ai_socktype; /* SOCK_xxx */ member
/aosp12/bionic/tests/headers/posix/
H A Dnetdb_h.c66 STRUCT_MEMBER(struct addrinfo, int, ai_socktype); in netdb_h()
/aosp12/system/core/libnetutils/
H A Difc_utils.c110 hints.ai_socktype = SOCK_DGRAM; in string_to_ip()
/aosp12/bionic/libc/dns/resolv/
H A Dres_init.c366 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in __res_vinit()
H A Dres_cache.c2019 .ai_socktype = SOCK_DGRAM, in _resolv_set_nameservers_for_net()
/aosp12/packages/modules/adb/
H A Dsysdeps_win32.cpp1137 hints.ai_socktype = type; in network_connect()
1168 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect()

12