Home
last modified time | relevance | path

Searched refs:servname (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython2/Demo/sockets/
Dtelnet.py38 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/
Dtelnet.py42 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/
Dfake-rfc2553.c155 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/
Devutil.c860 parse_numeric_servname(const char *servname) in parse_numeric_servname() argument
864 n = (int) strtol(servname, &endptr, 10); in parse_numeric_servname()
865 if (n>=0 && n <= 65535 && servname[0] && endptr && !endptr[0]) in parse_numeric_servname()
875 evutil_parse_servname(const char *servname, const char *protocol, in evutil_parse_servname() argument
878 int n = parse_numeric_servname(servname); in evutil_parse_servname()
883 struct servent *ent = getservbyname(servname, protocol); in evutil_parse_servname()
962 evutil_getaddrinfo_common_(const char *nodename, const char *servname, in evutil_getaddrinfo_common_() argument
968 if (nodename == NULL && servname == NULL) in evutil_getaddrinfo_common_()
980 if (servname) { in evutil_getaddrinfo_common_()
983 port = evutil_parse_servname(servname, pname, hints); in evutil_getaddrinfo_common_()
[all …]
Dutil-internal.h357 const char *nodename, const char *servname,
370 int evutil_getaddrinfo_common_(const char *nodename, const char *servname,
375 const char *nodename, const char *servname,
Devdns.c4629 const char *nodename, const char *servname, in evdns_getaddrinfo() argument
4654 err = evutil_getaddrinfo(nodename, servname, hints_in, &res); in evdns_getaddrinfo()
4673 err = evutil_getaddrinfo_common_(nodename, servname, &hints, &res, &port); in evdns_getaddrinfo()
DChangeLog24 o test/dns: replace servname since solaris does not have "http" (d6bafbbe Azat Khuzhin)
/external/iperf3/src/
Diperf_sctp.c510 char *servname; in iperf_sctp_bindx() local
531 servname = NULL; in iperf_sctp_bindx()
535 servname = portstr; in iperf_sctp_bindx()
551 if (getaddrinfo(xbe0->name, servname, &hints, &xbe0->ai) != 0) { in iperf_sctp_bindx()
586 servname = portstr; in iperf_sctp_bindx()
595 if (getaddrinfo(xbe->name, servname, &hints, &xbe->ai) != 0) { in iperf_sctp_bindx()
/external/python/cpython3/Modules/
Dgetaddrinfo.c236 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/cpython2/Modules/
Dgetaddrinfo.c236 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/
Dos400sys.c267 char * servname, curl_socklen_t servnamelen, in Curl_getnameinfo_a() argument
285 if(servname && servnamelen) { in Curl_getnameinfo_a()
304 i = QadrtConvertE2A(servname, eservname, in Curl_getnameinfo_a()
306 servname[i] = '\0'; in Curl_getnameinfo_a()
317 Curl_getaddrinfo_a(const char * nodename, const char * servname, in Curl_getaddrinfo_a() argument
341 if(servname) { in Curl_getaddrinfo_a()
342 i = strlen(servname); in Curl_getaddrinfo_a()
350 QadrtConvertA2E(eservname, servname, i, i); in Curl_getaddrinfo_a()
/external/curl/lib/
Dsetup-os400.h45 const char *servname,
54 char *servname, curl_socklen_t servnamelen,
Dcurl_addrinfo.h69 const char *servname,
Dcurl_addrinfo.c117 const char *servname, in Curl_getaddrinfo_ex() argument
131 error = getaddrinfo(nodename, servname, hints, &aihead); in Curl_getaddrinfo_ex()
/external/libevent/include/event2/
Ddns.h687 const char *nodename, const char *servname,
Dutil.h788 int evutil_getaddrinfo(const char *nodename, const char *servname,