On 05/19/2011 12:46 PM, Jakub Hrozek wrote:
I was also considering using "struct sockaddr_storage"
because that is
defined in system headers and some sources[1] recommend it, but I also
think that semantics of sockaddr structures is more tied to connecting
to a socket than just pure resolving. So right now I prefer the
resolv_addr union, but I would like to hear other opinions before moving
on with the patch.
We talked about this very briefly on our phone meeting. There was a
question about req_query/res_search family of functions -- these just
return a buffer of unsigned chars and its length, so it's a very
low-level interface.