1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-09 19:13:13 +00:00

- Brad Spencer brought the new function ares_gethostbyname_file() which simply

resolves a host name from the given file, using the regular hosts syntax.
This commit is contained in:
Daniel Stenberg
2008-11-19 15:16:16 +00:00
parent 8a34a3a045
commit 8a6b51d560
5 changed files with 116 additions and 1 deletions

2
ares.h
View File

@ -228,6 +228,8 @@ void ares_search(ares_channel channel, const char *name, int dnsclass,
int type, ares_callback callback, void *arg);
void ares_gethostbyname(ares_channel channel, const char *name, int family,
ares_host_callback callback, void *arg);
int ares_gethostbyname_file(ares_channel channel, const char *name,
int family, struct hostent **host);
void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen,
int family, ares_host_callback callback, void *arg);
void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa,