[asterisk-dev] [Code Review] 4437: dns: Define a core DNS API with examples.
Joshua Colp
jcolp at digium.com
Tue Mar 3 15:38:09 CST 2015
Olle E. Johansson wrote:
> On 03 Mar 2015, at 22:30, Joshua Colp<jcolp at digium.com> wrote:
>
>> Olle E. Johansson wrote:
>>> On 03 Mar 2015, at 21:10, Mark
>>> Michelson<reviewboard at asterisk.org
>>> <mailto:reviewboard at asterisk.org>> wrote:
>>>
>>>> for (i = 0; i< ast_query_set_num_queries(query_set); ++i) {
>>>> struct ast_dns_query *query = ast_dns_query_set_get(query_set,
>>>> i); ...do stuff... }
>>>>
>>> Why not use DNS terminology?
>> Can you elaborate on what you mean? Are you referring to query set
>> as a concept (I'm unaware if there's a specific term for a group of
>> queries in DNS) or to other stuff in the DNS API itself?
>>
> queries are what you send. This seems to handle a result set.
A query set is a higher level concept of grouped queries that are
executed in parallel, with a callback being invoked upon completion of
all of them. Each query holds result information respectively.
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list