Home
last modified time | relevance | path

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

/external/libpcap/Win32/Src/
Dgetaddrinfo.c296 getaddrinfo(hostname, servname, hints, res) in getaddrinfo() argument
297 const char *hostname, *servname; in getaddrinfo()
334 if (hostname == NULL && servname == NULL)
394 error = get_portmatch(pai, servname);
422 error = explore_null(pai, hostname, servname, &cur->ai_next);
424 error = explore_numeric_scope(pai, hostname, servname, &cur->ai_next);
481 error = explore_fqdn(pai, hostname, servname,
515 explore_fqdn(pai, hostname, servname, res) in explore_fqdn() argument
518 const char *servname;
547 if (get_portmatch(pai, servname) != 0)
[all …]
/external/netperf/src/missing/
Dgetaddrinfo.c328 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/libevent/
Devutil.c707 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 …]
Dutil-internal.h239 const char *nodename, const char *servname,
250 int evutil_getaddrinfo_common(const char *nodename, const char *servname,
254 const char *nodename, const char *servname,
Devdns.c4537 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/curl/packages/OS400/
Dos400sys.c264 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/
Dsetup-os400.h45 const char * servname,
54 char * servname, curl_socklen_t servnamelen,
Dcurl_addrinfo.h69 const char *servname,
Dcurl_addrinfo.c109 const char *servname, in Curl_getaddrinfo_ex() argument
123 error = getaddrinfo(nodename, servname, hints, &aihead); in Curl_getaddrinfo_ex()
/external/libevent/include/event2/
Ddns.h630 const char *nodename, const char *servname,
Dutil.h641 int evutil_getaddrinfo(const char *nodename, const char *servname,