/external/python/cpython2/Demo/sockets/ |
D | telnet.py | 38 servname = sys.argv[2] 40 servname = 'telnet' 42 if '0' <= servname[:1] <= '9': 43 port = eval(servname) 46 port = getservbyname(servname, 'tcp') 48 sys.stderr.write(servname + ': bad tcp service name\n')
|
/external/python/cpython2/Demo/threads/ |
D | telnet.py | 42 servname = sys.argv[2] 44 servname = 'telnet' 46 if '0' <= servname[:1] <= '9': 47 port = eval(servname) 50 port = getservbyname(servname, 'tcp') 52 sys.stderr.write(servname + ': bad tcp service name\n')
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 155 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument 169 if (servname != NULL) { in getaddrinfo() 172 port = strtol(servname, &cp, 10); in getaddrinfo() 175 else if ((sp = getservbyname(servname, NULL)) != NULL) in getaddrinfo()
|
/external/libevent/ |
D | evutil.c | 891 parse_numeric_servname(const char *servname) in parse_numeric_servname() argument 895 n = (int) strtol(servname, &endptr, 10); in parse_numeric_servname() 896 if (n>=0 && n <= 65535 && servname[0] && endptr && !endptr[0]) in parse_numeric_servname() 906 evutil_parse_servname(const char *servname, const char *protocol, in evutil_parse_servname() argument 909 int n = parse_numeric_servname(servname); in evutil_parse_servname() 914 struct servent *ent = getservbyname(servname, protocol); in evutil_parse_servname() 993 evutil_getaddrinfo_common_(const char *nodename, const char *servname, in evutil_getaddrinfo_common_() argument 1000 if (nodename == NULL && servname == NULL) in evutil_getaddrinfo_common_() 1012 if (servname) { in evutil_getaddrinfo_common_() 1015 port = evutil_parse_servname(servname, pname, hints); in evutil_getaddrinfo_common_() [all …]
|
D | util-internal.h | 404 const char *nodename, const char *servname, 423 int evutil_getaddrinfo_common_(const char *nodename, const char *servname, 428 const char *nodename, const char *servname,
|
D | evdns.c | 4702 const char *nodename, const char *servname, in evdns_getaddrinfo() argument 4728 err = evutil_getaddrinfo(nodename, servname, hints_in, &res); in evdns_getaddrinfo() 4747 err = evutil_getaddrinfo_common_(nodename, servname, &hints, &res, &port); in evdns_getaddrinfo()
|
D | ChangeLog | 337 o test/dns: replace servname since solaris does not have "http" (d6bafbbe Azat Khuzhin)
|
/external/python/cpython2/Modules/ |
D | getaddrinfo.c | 236 getaddrinfo(const char*hostname, const char*servname, in getaddrinfo() argument 276 if (hostname == NULL && servname == NULL) in getaddrinfo() 335 if (servname) { in getaddrinfo() 336 if (str_isnumber(servname)) { in getaddrinfo() 342 port = htons((u_short)atoi(servname)); in getaddrinfo() 362 if ((sp = getservbyname(servname, proto)) == NULL) in getaddrinfo()
|
/external/python/cpython3/Modules/ |
D | getaddrinfo.c | 236 getaddrinfo(const char*hostname, const char*servname, in getaddrinfo() argument 276 if (hostname == NULL && servname == NULL) in getaddrinfo() 335 if (servname) { in getaddrinfo() 336 if (str_isnumber(servname)) { in getaddrinfo() 342 port = htons((u_short)atoi(servname)); in getaddrinfo() 362 if ((sp = getservbyname(servname, proto)) == NULL) in getaddrinfo()
|
/external/iperf3/src/ |
D | iperf_sctp.c | 558 char *servname; in iperf_sctp_bindx() local 579 servname = NULL; in iperf_sctp_bindx() 583 servname = portstr; in iperf_sctp_bindx() 599 if ((gerror = getaddrinfo(xbe0->name, servname, &hints, &xbe0->ai)) != 0) { in iperf_sctp_bindx() 634 servname = portstr; in iperf_sctp_bindx() 643 if ((gerror = getaddrinfo(xbe->name, servname, &hints, &xbe->ai)) != 0) { in iperf_sctp_bindx()
|
/external/curl/lib/ |
D | setup-os400.h | 45 const char *servname, 54 char *servname, curl_socklen_t servnamelen,
|
D | curl_addrinfo.h | 67 const char *servname,
|
D | curl_addrinfo.c | 110 const char *servname, in Curl_getaddrinfo_ex() argument 124 error = getaddrinfo(nodename, servname, hints, &aihead); in Curl_getaddrinfo_ex()
|
/external/curl/packages/OS400/ |
D | os400sys.c | 267 char * servname, curl_socklen_t servnamelen, in Curl_getnameinfo_a() argument 281 if(servname && servnamelen) { in Curl_getnameinfo_a() 301 i = QadrtConvertE2A(servname, eservname, in Curl_getnameinfo_a() 303 servname[i] = '\0'; in Curl_getnameinfo_a() 314 Curl_getaddrinfo_a(const char * nodename, const char * servname, in Curl_getaddrinfo_a() argument 338 if(servname) { in Curl_getaddrinfo_a() 339 i = strlen(servname); in Curl_getaddrinfo_a() 347 QadrtConvertA2E(eservname, servname, i, i); in Curl_getaddrinfo_a()
|
/external/llvm-project/lldb/source/Host/common/ |
D | SocketAddress.cpp | 221 SocketAddress::GetAddressInfo(const char *hostname, const char *servname, in GetAddressInfo() argument 234 int err = ::getaddrinfo(hostname, servname, &hints, &service_info_list); in GetAddressInfo()
|
/external/llvm-project/lldb/include/lldb/Host/ |
D | SocketAddress.h | 38 GetAddressInfo(const char *hostname, const char *servname, int ai_family,
|
/external/libevent/include/event2/ |
D | dns.h | 721 const char *nodename, const char *servname,
|
D | util.h | 808 int evutil_getaddrinfo(const char *nodename, const char *servname,
|
/external/elfutils/debuginfod/ |
D | debuginfod.cxx | 903 char servname[256]; in conninfo() local 915 sts = getnameinfo (so, sizeof (struct sockaddr_in), hostname, sizeof (hostname), servname, in conninfo() 916 sizeof (servname), NI_NUMERICHOST | NI_NUMERICSERV); in conninfo() 919 servname, sizeof (servname), NI_NUMERICHOST | NI_NUMERICSERV); in conninfo() 922 hostname[0] = servname[0] = '\0'; in conninfo() 930 return string(hostname) + string(":") + string(servname) + in conninfo()
|