/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/netperf/src/missing/ |
D | getaddrinfo.c | 328 getaddrinfo(nodename, servname, hints, res) in getaddrinfo() argument 330 const char *servname; 355 if (nodename == NULL && servname == NULL) { 375 if (servname != NULL) { 376 if (is_integer(servname)) 377 port = htons(atoi(servname)); 385 servent = getservbyname(servname, "udp"); 387 servent = getservbyname(servname, "tcp"); 389 servent = getservbyname(servname, "tcp");
|
/external/syslinux/core/lwip/src/include/lwip/ |
D | netdb.h | 105 const char *servname, 114 #define getaddrinfo(nodname, servname, hints, res) \ argument 115 lwip_getaddrinfo(nodname, servname, hints, res)
|
/external/libevent/ |
D | evutil.c | 707 parse_numeric_servname(const char *servname) in parse_numeric_servname() argument 711 n = (int) strtol(servname, &endptr, 10); in parse_numeric_servname() 712 if (n>=0 && n <= 65535 && servname[0] && endptr && !endptr[0]) in parse_numeric_servname() 722 evutil_parse_servname(const char *servname, const char *protocol, in evutil_parse_servname() argument 725 int n = parse_numeric_servname(servname); in evutil_parse_servname() 730 struct servent *ent = getservbyname(servname, protocol); in evutil_parse_servname() 809 evutil_getaddrinfo_common(const char *nodename, const char *servname, in evutil_getaddrinfo_common() argument 815 if (nodename == NULL && servname == NULL) in evutil_getaddrinfo_common() 827 if (servname) { in evutil_getaddrinfo_common() 830 port = evutil_parse_servname(servname, pname, hints); in evutil_getaddrinfo_common() [all …]
|
D | util-internal.h | 239 const char *nodename, const char *servname, 250 int evutil_getaddrinfo_common(const char *nodename, const char *servname, 254 const char *nodename, const char *servname,
|
D | evdns.c | 4537 const char *nodename, const char *servname, in evdns_getaddrinfo() argument 4562 err = evutil_getaddrinfo(nodename, servname, hints_in, &res); in evdns_getaddrinfo() 4581 err = evutil_getaddrinfo_common(nodename, servname, &hints, &res, &port); in evdns_getaddrinfo()
|
/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/syslinux/core/lwip/src/api/ |
D | netdb.c | 266 lwip_getaddrinfo(const char *nodename, const char *servname, in lwip_getaddrinfo() argument 281 if ((nodename == NULL) && (servname == NULL)) { in lwip_getaddrinfo() 285 if (servname != NULL) { in lwip_getaddrinfo() 288 port_nr = atoi(servname); in lwip_getaddrinfo()
|
/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/curl/packages/OS400/ |
D | os400sys.c | 264 char * servname, curl_socklen_t servnamelen, in Curl_getnameinfo_a() argument 280 if(servname && servnamelen) in Curl_getnameinfo_a() 297 i = QadrtConvertE2A(servname, eservname, in Curl_getnameinfo_a() 299 servname[i] = '\0'; in Curl_getnameinfo_a() 310 Curl_getaddrinfo_a(const char * nodename, const char * servname, in Curl_getaddrinfo_a() argument 333 if(servname) { in Curl_getaddrinfo_a() 334 i = strlen(servname); in Curl_getaddrinfo_a() 341 QadrtConvertA2E(eservname, servname, i, i); in Curl_getaddrinfo_a()
|
/external/curl/lib/ |
D | setup-os400.h | 45 const char *servname, 54 char *servname, curl_socklen_t servnamelen,
|
D | curl_addrinfo.h | 69 const char *servname,
|
D | curl_addrinfo.c | 108 const char *servname, in Curl_getaddrinfo_ex() argument 122 error = getaddrinfo(nodename, servname, hints, &aihead); in Curl_getaddrinfo_ex()
|
/external/libevent/include/event2/ |
D | dns.h | 630 const char *nodename, const char *servname,
|
D | util.h | 641 int evutil_getaddrinfo(const char *nodename, const char *servname,
|