Home
last modified time | relevance | path

Searched refs:ai_protocol (Results 1 – 25 of 70) sorted by relevance

123

/external/python/cpython3/Modules/
Dgetaddrinfo.c269 pai->ai_protocol = GAI_ANY; in getaddrinfo()
298 switch (pai->ai_protocol) { in getaddrinfo()
315 if (pai->ai_protocol != IPPROTO_UDP && in getaddrinfo()
316 pai->ai_protocol != GAI_ANY) in getaddrinfo()
318 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
321 if (pai->ai_protocol != IPPROTO_TCP && in getaddrinfo()
322 pai->ai_protocol != GAI_ANY) in getaddrinfo()
324 pai->ai_protocol = IPPROTO_TCP; in getaddrinfo()
340 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
368 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
[all …]
Daddrinfo.h131 int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ member
/external/python/cpython2/Modules/
Dgetaddrinfo.c269 pai->ai_protocol = GAI_ANY; in getaddrinfo()
298 switch (pai->ai_protocol) { in getaddrinfo()
315 if (pai->ai_protocol != IPPROTO_UDP && in getaddrinfo()
316 pai->ai_protocol != GAI_ANY) in getaddrinfo()
318 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
321 if (pai->ai_protocol != IPPROTO_TCP && in getaddrinfo()
322 pai->ai_protocol != GAI_ANY) in getaddrinfo()
324 pai->ai_protocol = IPPROTO_TCP; in getaddrinfo()
340 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
368 pai->ai_protocol = IPPROTO_UDP; in getaddrinfo()
[all …]
Daddrinfo.h131 int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ member
/external/parameter-framework/asio-1.10.6/include/asio/ip/
Dbasic_resolver_query.hpp69 hints_.ai_protocol = endpoint.protocol().protocol(); in basic_resolver_query()
106 hints_.ai_protocol = protocol.protocol(); in basic_resolver_query()
154 hints_.ai_protocol = endpoint.protocol().protocol(); in basic_resolver_query()
205 hints_.ai_protocol = protocol.protocol(); in basic_resolver_query()
/external/openssh/openbsd-compat/
Dfake-rfc2553.c148 if (hints->ai_protocol) in malloc_ai()
149 ai->ai_protocol = hints->ai_protocol; in malloc_ai()
Dfake-rfc2553.h142 int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ member
/external/swiftshader/src/Common/
DSocket.cpp43 hints.ai_protocol = IPPROTO_TCP; in Socket()
51 socket = ::socket(info->ai_family, info->ai_socktype, info->ai_protocol); in Socket()
/external/swiftshader/src/System/
DSocket.cpp43 hints.ai_protocol = IPPROTO_TCP; 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_()
837 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_()
924 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
926 hints->ai_protocol = IPPROTO_UDP; in evutil_getaddrinfo_infer_protocols()
928 hints->ai_protocol = IPPROTO_TCP; in evutil_getaddrinfo_infer_protocols()
932 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols()
933 if (hints->ai_protocol == IPPROTO_UDP) in evutil_getaddrinfo_infer_protocols()
935 else if (hints->ai_protocol == IPPROTO_TCP) in evutil_getaddrinfo_infer_protocols()
[all …]
/external/tensorflow/tensorflow/contrib/ignite/kernels/client/
Dignite_plain_client_windows.cc56 hints.ai_protocol = IPPROTO_TCP; 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.c447 hints.ai_protocol = IPPROTO_UDP; in get_maddrinfo()
545 hints.ai_protocol = IPPROTO_UDP; in create_source_filter()
552 hints.ai_protocol = IPPROTO_UDP; in create_source_filter()
Dns-udpclient.c261 hints.ai_protocol = IPPROTO_UDP; in main()
274 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
Dns-tcpclient.c256 hints.ai_protocol = IPPROTO_TCP; in main()
270 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
Dns-udpserver.c281 hints.ai_protocol = IPPROTO_UDP; in main()
296 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
Dns-udpsender.c300 hints.ai_protocol = IPPROTO_UDP; in create_udp_datagram()
314 udp_p->sd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in create_udp_datagram()
Dns-tcpserver.c214 hints.ai_protocol = IPPROTO_TCP; in create_listen_socket()
230 res->ai_socktype, res->ai_protocol); in create_listen_socket()
/external/toybox/toys/pending/
Dwget.c86 hints.ai_protocol = 0; in conn_svr()
93 if ((sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol)) in conn_svr()
/external/libpcap/
Dnametoaddr.c189 hints.ai_protocol = IPPROTO_TCP; /*not really*/ in pcap_nametoaddrinfo()
306 hints.ai_protocol = IPPROTO_TCP; in pcap_nametoport()
350 hints.ai_protocol = IPPROTO_UDP; in pcap_nametoport()
/external/toybox/lib/
Dnet.c28 info.ai_protocol = protocol; in xgetaddrinfo()
48 ai->ai_protocol); in xconnbind()
/external/curl/lib/
Dcurl_addrinfo.h55 int ai_protocol; member
Dcurl_addrinfo.c170 ca->ai_protocol = ai->ai_protocol; in Curl_getaddrinfo_ex()
/external/libevent/test/
Dregress_util.c801 if (ai->ai_protocol == protocol) in ai_find_by_protocol()
821 tt_int_op(ai->ai_protocol, ==, protocol); in test_ai_eq_()
945 hints.ai_protocol = IPPROTO_UDP; in test_evutil_getaddrinfo()
957 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo()
1075 hints.ai_protocol = IPPROTO_TCP; in test_evutil_getaddrinfo_live()
1083 tt_int_op(ai->ai_protocol, ==, IPPROTO_TCP); in test_evutil_getaddrinfo_live()
/external/boringssl/src/crypto/bio/
Dsocket_helper.c72 *out_sock = socket(cur->ai_family, cur->ai_socktype, cur->ai_protocol); in OPENSSL_MSVC_PRAGMA()
/external/openssh/regress/
Dnetcat.c334 hints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP; in main()
362 proxyhints.ai_protocol = IPPROTO_TCP; in main()
618 res0->ai_protocol)) < 0) in remote_connect()
637 ahints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP; in remote_connect()
730 res0->ai_protocol)) < 0) in local_listen()

123