Home
last modified time | relevance | path

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

12345

/external/python/cpython2/Modules/
Dgetaddrinfo.c268 pai->ai_socktype = GAI_ANY; in getaddrinfo()
296 switch (pai->ai_socktype) { in getaddrinfo()
302 pai->ai_socktype = SOCK_DGRAM; in getaddrinfo()
305 pai->ai_socktype = SOCK_STREAM; in getaddrinfo()
308 pai->ai_socktype = SOCK_RAW; in getaddrinfo()
337 if (pai->ai_socktype == GAI_ANY) { in getaddrinfo()
339 pai->ai_socktype = SOCK_DGRAM; in getaddrinfo()
348 switch (pai->ai_socktype) { in getaddrinfo()
365 if (pai->ai_socktype == GAI_ANY) { in getaddrinfo()
367 pai->ai_socktype = SOCK_DGRAM; in getaddrinfo()
[all …]
/external/python/cpython3/Modules/
Dgetaddrinfo.c268 pai->ai_socktype = GAI_ANY; in getaddrinfo()
296 switch (pai->ai_socktype) { in getaddrinfo()
302 pai->ai_socktype = SOCK_DGRAM; in getaddrinfo()
305 pai->ai_socktype = SOCK_STREAM; in getaddrinfo()
308 pai->ai_socktype = SOCK_RAW; in getaddrinfo()
337 if (pai->ai_socktype == GAI_ANY) { in getaddrinfo()
339 pai->ai_socktype = SOCK_DGRAM; in getaddrinfo()
348 switch (pai->ai_socktype) { in getaddrinfo()
365 if (pai->ai_socktype == GAI_ANY) { in getaddrinfo()
367 pai->ai_socktype = SOCK_DGRAM; in getaddrinfo()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/ip/
Dbasic_resolver_query.hpp68 hints_.ai_socktype = endpoint.protocol().type(); in basic_resolver_query()
105 hints_.ai_socktype = protocol.type(); in basic_resolver_query()
153 hints_.ai_socktype = endpoint.protocol().type(); in basic_resolver_query()
204 hints_.ai_socktype = protocol.type(); in basic_resolver_query()
/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c204 hints.ai_socktype = SOCK_STREAM; in gaiv4()
272 hints.ai_socktype = SOCK_STREAM; in gaiv4()
326 hints.ai_socktype = SOCK_STREAM; in gaiv4()
405 hints.ai_socktype = SOCK_STREAM; in gaiv4()
421 hints.ai_socktype = 0; in gaiv4()
435 got_tcp |= pai->ai_socktype == SOCK_STREAM; in gaiv4()
436 got_udp |= pai->ai_socktype == SOCK_DGRAM; in gaiv4()
663 hints.ai_socktype = SOCK_STREAM; in gaiv6()
732 hints.ai_socktype = SOCK_STREAM; in gaiv6()
785 hints.ai_socktype = SOCK_STREAM; in gaiv6()
[all …]
/external/openssh/openbsd-compat/
Dfake-rfc2553.c143 if (hints->ai_socktype) in malloc_ai()
144 ai->ai_socktype = hints->ai_socktype; in malloc_ai()
146 ai->ai_socktype = SOCK_STREAM; in malloc_ai()
/external/swiftshader/src/System/
DSocket.cpp42 hints.ai_socktype = SOCK_STREAM; in Socket()
51 socket = ::socket(info->ai_family, info->ai_socktype, info->ai_protocol); in Socket()
/external/swiftshader/src/Common/
DSocket.cpp42 hints.ai_socktype = SOCK_STREAM; in Socket()
51 socket = ::socket(info->ai_family, info->ai_socktype, info->ai_protocol); in Socket()
/external/libevent/
Devutil.c807 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_()
812 tmp.ai_socktype = SOCK_STREAM; tmp.ai_protocol = IPPROTO_TCP; in evutil_new_addrinfo_()
816 tmp.ai_socktype = SOCK_DGRAM; tmp.ai_protocol = IPPROTO_UDP; in evutil_new_addrinfo_()
836 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo_()
924 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
925 if (hints->ai_socktype == SOCK_DGRAM) in evutil_getaddrinfo_infer_protocols()
927 else if (hints->ai_socktype == SOCK_STREAM) in evutil_getaddrinfo_infer_protocols()
932 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols()
934 hints->ai_socktype = SOCK_DGRAM; in evutil_getaddrinfo_infer_protocols()
936 hints->ai_socktype = SOCK_STREAM; in evutil_getaddrinfo_infer_protocols()
[all …]
/external/boringssl/src/crypto/bio/
Dsocket_helper.c53 hint.ai_socktype = SOCK_STREAM; in OPENSSL_MSVC_PRAGMA()
72 *out_sock = socket(cur->ai_family, cur->ai_socktype, cur->ai_protocol); in OPENSSL_MSVC_PRAGMA()
/external/curl/lib/
Dcurl_addrinfo.c169 ca->ai_socktype = ai->ai_socktype; in Curl_getaddrinfo_ex()
337 ai->ai_socktype = SOCK_STREAM; in Curl_he2ai()
525 ai->ai_socktype = SOCK_STREAM; /* assume reliable transport for HTTP */ in Curl_unix2addr()
Dcurl_addrinfo.h54 int ai_socktype; member
/external/tensorflow/tensorflow/contrib/ignite/kernels/client/
Dignite_plain_client_windows.cc55 hints.ai_socktype = SOCK_STREAM; in Connect()
65 sock_ = socket(ptr->ai_family, ptr->ai_socktype, ptr->ai_protocol); in Connect()
/external/ltp/testcases/network/stress/ns-tools/
Dns-common.c446 hints.ai_socktype = SOCK_DGRAM; in get_maddrinfo()
544 hints.ai_socktype = SOCK_DGRAM; in create_source_filter()
551 hints.ai_socktype = SOCK_DGRAM; in create_source_filter()
Dns-tcpclient.c255 hints.ai_socktype = SOCK_STREAM; in main()
270 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
Dns-udpclient.c260 hints.ai_socktype = SOCK_DGRAM; in main()
274 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
Dns-udpserver.c280 hints.ai_socktype = SOCK_DGRAM; in main()
296 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
Dns-udpsender.c299 hints.ai_socktype = SOCK_DGRAM; in create_udp_datagram()
314 udp_p->sd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in create_udp_datagram()
/external/iperf3/src/
Dnet.c124 hints.ai_socktype = proto; in netdial()
131 hints.ai_socktype = proto; in netdial()
239 hints.ai_socktype = proto; in netannounce()
Diperf_sctp.c179 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_listen()
268 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_connect()
277 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_connect()
530 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_bindx()
/external/toybox/toys/pending/
Dwget.c84 hints.ai_socktype = SOCK_STREAM; in conn_svr()
93 if ((sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol)) in conn_svr()
Dhost.c120 struct addrinfo ns_hints = { .ai_socktype = SOCK_DGRAM }; in host_main()
124 int s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in host_main()
/external/libpcap/
Dsockutils.c327 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol);
407 if (addrinfo->ai_socktype == SOCK_STREAM)
607 if (((*addrinfo)->ai_socktype == SOCK_STREAM) &&
1165 hints.ai_socktype = SOCK_STREAM;
Dnametoaddr.c188 hints.ai_socktype = SOCK_STREAM; /*not really*/ in pcap_nametoaddrinfo()
305 hints.ai_socktype = SOCK_STREAM; in pcap_nametoport()
349 hints.ai_socktype = SOCK_DGRAM; in pcap_nametoport()
/external/toybox/lib/
Dnet.c27 info.ai_socktype = socktype; in xgetaddrinfo()
47 fd = (ai->ai_next ? socket : xsocket)(ai->ai_family, ai->ai_socktype, in xconnbind()
/external/curl/tests/server/
Dresolve.c129 hints.ai_socktype = SOCK_STREAM; in main()

12345