----- Original Message ----- > From: "Daniel Stenberg" <dan...@haxx.se> > To: "Vinay Kumar" <win_i...@yahoo.com>, "c-ares hacking" <c-ares@cool.haxx.se> > Sent: Thursday, October 30, 2014 11:09:12 AM > Subject: Re: 'ares_getaddrinfo' is available? > > On Thu, 30 Oct 2014, Vinay Kumar wrote: > > > I am using 'c-ares' library in our application. We have used 'getaddrinfo' > > in many places. Is there any equivalent function called 'ares_getaddrinfo'? > > Because 'ares_nameinfo.pdf' contains 'ares_getaddrinfo' in SEE ALSO > > section. > > If 'ares_getaddrinfo' is availabe, then what is the syntax?
By the way the netresolve project[1] which can work on top of c-ares (libunbound is currently the default but subject to change at any time) offers getaddrinfo and getnameinfo functions. I found out some issues with the current APIs in c-ares, so if you would like to add stuff like that, please contact me so I can share the experience gained so far. [1] https://sourceware.org/git/?p=netresolve.git;a=blob;f=README;hb=HEAD Cheers, Pavel > It is a mistake, there is no such function. But it would be great to have > one! > > > If not availabe, is there any equivalent api? > > I believe ares_gethostbyname() using PF_INET and then PF_INET6 is the closest > thing, but it isn't identical in functionality. > > -- > > / daniel.haxx.se >