Home
last modified time | relevance | path

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

/external/libevent/
Devutil.c2139 evutil_parse_sockaddr_port(const char *ip_as_string, struct sockaddr *out, int *outlen) in evutil_parse_sockaddr_port() argument
2154 cp = strchr(ip_as_string, ':'); in evutil_parse_sockaddr_port()
2155 if (*ip_as_string == '[') { in evutil_parse_sockaddr_port()
2157 if (!(cp = strchr(ip_as_string, ']'))) { in evutil_parse_sockaddr_port()
2160 len = ( cp-(ip_as_string + 1) ); in evutil_parse_sockaddr_port()
2164 memcpy(buf, ip_as_string+1, len); in evutil_parse_sockaddr_port()
2174 addr_part = ip_as_string; in evutil_parse_sockaddr_port()
2178 if (cp - ip_as_string > (int)sizeof(buf)-1) { in evutil_parse_sockaddr_port()
2181 memcpy(buf, ip_as_string, cp-ip_as_string); in evutil_parse_sockaddr_port()
2182 buf[cp-ip_as_string] = '\0'; in evutil_parse_sockaddr_port()
[all …]
Devdns.c2647 evdns_base_nameserver_ip_add(struct evdns_base *base, const char *ip_as_string) { in evdns_base_nameserver_ip_add() argument
2652 if (evutil_parse_sockaddr_port(ip_as_string, (struct sockaddr *)&ss, in evdns_base_nameserver_ip_add()
2655 ip_as_string); in evdns_base_nameserver_ip_add()
2669 evdns_nameserver_ip_add(const char *ip_as_string) { in evdns_nameserver_ip_add() argument
2672 return evdns_base_nameserver_ip_add(current_base, ip_as_string); in evdns_nameserver_ip_add()
/external/libevent/include/event2/
Ddns_compat.h182 int evdns_nameserver_ip_add(const char *ip_as_string);
Ddns.h370 const char *ip_as_string);