Home
last modified time | relevance | path

Searched refs:ip_as_string (Results 1 – 4 of 4) sorted by relevance

/external/libevent/
Devutil.c1795 evutil_parse_sockaddr_port(const char *ip_as_string, struct sockaddr *out, int *outlen) in evutil_parse_sockaddr_port() argument
1809 cp = strchr(ip_as_string, ':'); in evutil_parse_sockaddr_port()
1810 if (*ip_as_string == '[') { in evutil_parse_sockaddr_port()
1812 if (!(cp = strchr(ip_as_string, ']'))) { in evutil_parse_sockaddr_port()
1815 len = (int) ( cp-(ip_as_string + 1) ); in evutil_parse_sockaddr_port()
1819 memcpy(buf, ip_as_string+1, len); in evutil_parse_sockaddr_port()
1829 addr_part = ip_as_string; in evutil_parse_sockaddr_port()
1833 if (cp - ip_as_string > (int)sizeof(buf)-1) { in evutil_parse_sockaddr_port()
1836 memcpy(buf, ip_as_string, cp-ip_as_string); in evutil_parse_sockaddr_port()
1837 buf[cp-ip_as_string] = '\0'; in evutil_parse_sockaddr_port()
[all …]
Devdns.c2591 evdns_base_nameserver_ip_add(struct evdns_base *base, const char *ip_as_string) { in evdns_base_nameserver_ip_add() argument
2596 if (evutil_parse_sockaddr_port(ip_as_string, (struct sockaddr *)&ss, in evdns_base_nameserver_ip_add()
2599 ip_as_string); in evdns_base_nameserver_ip_add()
2613 evdns_nameserver_ip_add(const char *ip_as_string) { in evdns_nameserver_ip_add() argument
2616 return evdns_base_nameserver_ip_add(current_base, ip_as_string); in evdns_nameserver_ip_add()
/external/libevent/include/event2/
Ddns_compat.h173 int evdns_nameserver_ip_add(const char *ip_as_string);
Ddns.h312 const char *ip_as_string);