Lines Matching refs:servname
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()
1187 evutil_getaddrinfo(const char *nodename, const char *servname, in evutil_getaddrinfo() argument
1212 if (servname && parse_numeric_servname(servname)<0) in evutil_getaddrinfo()
1231 err = evutil_getaddrinfo_common(nodename,servname,&hints, in evutil_getaddrinfo()
1243 need_np_hack = need_numeric_port_hack() && servname && !hints.ai_socktype in evutil_getaddrinfo()
1244 && ((portnum=parse_numeric_servname(servname)) >= 0); in evutil_getaddrinfo()
1248 NULL,servname,&hints, res, &portnum); in evutil_getaddrinfo()
1249 servname = NULL; in evutil_getaddrinfo()
1268 err = getaddrinfo(nodename, servname, &hints, res); in evutil_getaddrinfo()
1294 err = evutil_getaddrinfo_common(nodename, servname, &hints, res, &port); in evutil_getaddrinfo()
1410 const char *nodename, const char *servname, in evutil_getaddrinfo_async() argument
1416 dns_base, nodename, servname, hints_in, cb, arg); in evutil_getaddrinfo_async()
1420 err = evutil_getaddrinfo(nodename, servname, hints_in, &ai); in evutil_getaddrinfo_async()