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/netperf/src/missing/
Dgetaddrinfo.c365 if (hints->ai_socktype != SOCK_DGRAM
366 && hints->ai_socktype != SOCK_STREAM
367 && hints->ai_socktype != 0) {
384 if (hints->ai_socktype == SOCK_DGRAM)
386 else if (hints->ai_socktype == SOCK_STREAM)
388 else if (hints->ai_socktype == 0)
467 new_res->ai_socktype = hints->ai_socktype;
/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.c203 hints.ai_socktype = SOCK_STREAM; in gaiv4()
271 hints.ai_socktype = SOCK_STREAM; in gaiv4()
325 hints.ai_socktype = SOCK_STREAM; in gaiv4()
404 hints.ai_socktype = SOCK_STREAM; in gaiv4()
420 hints.ai_socktype = 0; in gaiv4()
434 got_tcp |= pai->ai_socktype == SOCK_STREAM; in gaiv4()
435 got_udp |= pai->ai_socktype == SOCK_DGRAM; in gaiv4()
662 hints.ai_socktype = SOCK_STREAM; in gaiv6()
731 hints.ai_socktype = SOCK_STREAM; in gaiv6()
784 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/libevent/
Devutil.c654 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo()
659 tmp.ai_socktype = SOCK_STREAM; tmp.ai_protocol = IPPROTO_TCP; in evutil_new_addrinfo()
663 tmp.ai_socktype = SOCK_DGRAM; tmp.ai_protocol = IPPROTO_UDP; in evutil_new_addrinfo()
683 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo()
771 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
772 if (hints->ai_socktype == SOCK_DGRAM) in evutil_getaddrinfo_infer_protocols()
774 else if (hints->ai_socktype == SOCK_STREAM) in evutil_getaddrinfo_infer_protocols()
779 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols()
781 hints->ai_socktype = SOCK_DGRAM; in evutil_getaddrinfo_infer_protocols()
783 hints->ai_socktype = SOCK_STREAM; in evutil_getaddrinfo_infer_protocols()
[all …]
/external/swiftshader/src/Common/
DSocket.cpp41 hints.ai_socktype = SOCK_STREAM; in Socket()
50 socket = ::socket(info->ai_family, info->ai_socktype, info->ai_protocol); in Socket()
/external/boringssl/src/crypto/bio/
Dsocket_helper.c51 hint.ai_socktype = SOCK_STREAM; in OPENSSL_MSVC_PRAGMA()
70 *out_sock = socket(cur->ai_family, cur->ai_socktype, cur->ai_protocol); in OPENSSL_MSVC_PRAGMA()
/external/curl/lib/
Dcurl_addrinfo.c159 ca->ai_socktype = ai->ai_socktype; in Curl_getaddrinfo_ex()
322 ai->ai_socktype = SOCK_STREAM; in Curl_he2ai()
501 ai->ai_socktype = SOCK_STREAM; /* assume reliable transport for HTTP */ in Curl_unix2addr()
Dcurl_addrinfo.h54 int ai_socktype; member
/external/toybox/lib/
Dnet.c26 info.ai_socktype = socktype; in xconnect()
37 fd = (ai->ai_next ? socket : xsocket)(ai->ai_family, ai->ai_socktype, in xconnect()
/external/libpcap/
Dsockutils.c287 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in sock_open()
325 if (addrinfo->ai_socktype == SOCK_STREAM) in sock_open()
522 if (((*addrinfo)->ai_socktype == SOCK_STREAM) && in sock_initaddress()
903 hints.ai_socktype = SOCK_STREAM; in sock_check_hostlist()
/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/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/ltp/testcases/network/netstress/
Dnetstress.c230 remote_addrinfo->ai_socktype, 0); in client_connect_send()
358 hints.ai_socktype = (use_udp) ? SOCK_DGRAM : SOCK_STREAM; in client_init()
519 hints.ai_socktype = (use_udp) ? SOCK_DGRAM : SOCK_STREAM; in server_init()
531 sfd = SAFE_SOCKET(AF_INET6, local_addrinfo->ai_socktype, 0); in server_init()
/external/c-ares/
Dares_ipv6.h40 int ai_socktype; member
/external/netcat/
Dnetcat.c333 hints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; in main()
362 proxyhints.ai_socktype = SOCK_STREAM; in main()
600 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
622 ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; in remote_connect()
715 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
/external/libvncserver/libvncclient/
Dsockets.c374 hints.ai_socktype = SOCK_STREAM; in ConnectClientToTcpAddr6()
385 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in ConnectClientToTcpAddr6()
550 hints.ai_socktype = SOCK_STREAM; in ListenAtTcpPortAndAddress()
563 if ((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) < 0) { in ListenAtTcpPortAndAddress()
/external/syslinux/core/lwip/src/api/
Dnetdb.c330 ai->ai_socktype = hints->ai_socktype; in lwip_getaddrinfo()
/external/syslinux/core/lwip/src/include/lwip/
Dnetdb.h86 int ai_socktype; /* Socket type. */ member

12345