/external/python/cpython2/Modules/ |
D | getaddrinfo.c | 268 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/ |
D | getaddrinfo.c | 365 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/ |
D | basic_resolver_query.hpp | 68 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/ |
D | getaddrinfo_01.c | 203 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/ |
D | fake-rfc2553.c | 143 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/ |
D | evutil.c | 654 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/ |
D | Socket.cpp | 41 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/ |
D | socket_helper.c | 51 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/ |
D | curl_addrinfo.c | 159 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()
|
D | curl_addrinfo.h | 54 int ai_socktype; member
|
/external/toybox/lib/ |
D | net.c | 26 info.ai_socktype = socktype; in xconnect() 37 fd = (ai->ai_next ? socket : xsocket)(ai->ai_family, ai->ai_socktype, in xconnect()
|
/external/libpcap/ |
D | sockutils.c | 287 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/ |
D | ns-common.c | 446 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()
|
D | ns-tcpclient.c | 255 hints.ai_socktype = SOCK_STREAM; in main() 270 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
|
D | ns-udpclient.c | 260 hints.ai_socktype = SOCK_DGRAM; in main() 274 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
|
D | ns-udpserver.c | 280 hints.ai_socktype = SOCK_DGRAM; in main() 296 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
|
D | ns-udpsender.c | 299 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/ |
D | wget.c | 84 hints.ai_socktype = SOCK_STREAM; in conn_svr() 93 if ((sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol)) in conn_svr()
|
D | host.c | 120 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/ |
D | netstress.c | 230 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/ |
D | ares_ipv6.h | 40 int ai_socktype; member
|
/external/netcat/ |
D | netcat.c | 333 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/ |
D | sockets.c | 374 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/ |
D | netdb.c | 330 ai->ai_socktype = hints->ai_socktype; in lwip_getaddrinfo()
|
/external/syslinux/core/lwip/src/include/lwip/ |
D | netdb.h | 86 int ai_socktype; /* Socket type. */ member
|