Subject: Re: Callback for DNS query

Re: Callback for DNS query

From: Erik Kline <ek_at_google.com>
Date: Tue, 5 May 2009 06:26:36 -0700

2009/5/5 Alexey Simak <alexeysimak_at_gmail.com>

> Why not extend the callback to include the error code of the writev() and
>> then call the callback /after/ the writev()s?
>> Hmm, on second thought I guess the writes can return EAGAIN? Nonetheless,
>> why not wait until the write has been known to have either succeeded or
>> failed?
>>
>
> Our goal was just to log outgoing DNS queries. But your suggestion make
> sense
> from my point of view. Also I think beside return code of write we can
> return "struct in_addr" of DNS server which we tried.
>

Please don't make it IPv4-specific, though. There's and ares_something
union around somewhere for that purpose...
Received on 2009-05-05