• Home
  • Raw
  • Download

Lines Matching refs:servname

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_()
1385 evutil_getaddrinfo(const char *nodename, const char *servname, in evutil_getaddrinfo() argument
1410 if (servname && parse_numeric_servname(servname)<0) in evutil_getaddrinfo()
1429 err = evutil_getaddrinfo_common_(nodename,servname,&hints, in evutil_getaddrinfo()
1441 need_np_hack = need_numeric_port_hack() && servname && !hints.ai_socktype in evutil_getaddrinfo()
1442 && ((portnum=parse_numeric_servname(servname)) >= 0); in evutil_getaddrinfo()
1446 NULL,servname,&hints, res, &portnum); in evutil_getaddrinfo()
1447 servname = NULL; in evutil_getaddrinfo()
1466 err = getaddrinfo(nodename, servname, &hints, res); in evutil_getaddrinfo()
1492 err = evutil_getaddrinfo_common_(nodename, servname, &hints, res, &port); in evutil_getaddrinfo()
1615 const char *nodename, const char *servname, in evutil_getaddrinfo_async_() argument
1621 dns_base, nodename, servname, hints_in, cb, arg); in evutil_getaddrinfo_async_()
1625 err = evutil_getaddrinfo(nodename, servname, hints_in, &ai); in evutil_getaddrinfo_async_()