1ARES_PARSE_AAAA_REPLY(3)   Library Functions Manual   ARES_PARSE_AAAA_REPLY(3)
2
3
4

NAME

6       ares_parse_aaaa_reply - Parse a reply to a DNS query of type AAAA
7

SYNOPSIS

9       #include <ares.h>
10
11       int ares_parse_aaaa_reply(const unsigned char *abuf, int alen,
12                                 struct hostent **host,
13                                 struct ares_addr6ttl *addrttls, int *naddrttls);
14

DESCRIPTION

16       The  ares_parse_aaaa_reply  function  parses the response to a query of
17       type  AAAA  into  a  struct  hostent  and/or   an   array   of   struct
18       ares_addr6ttl.   The  parameters abuf and alen give the contents of the
19       response.  The result is stored in allocated memory and a pointer to it
20       stored into the variable pointed to by host, if host is nonnull.  It is
21       the caller's responsibility to free the resulting host structure  using
22       ares_free_hostent(3) when it is no longer needed.
23
24       If  addrttls  and  naddrttls  are  both  nonnull, then up to *naddrttls
25       struct ares_addr6ttl records are stored in the array pointed to by  ad‐
26       drttls,  and then *naddrttls is set to the number of records so stored.
27       Note that the memory for these records is supplied by the caller.
28

RETURN VALUES

30       ares_parse_aaaa_reply can return any of the following values:
31
32       ARES_SUCCESS   The response was successfully parsed.
33
34       ARES_EBADRESP  The response was malformatted.
35
36       ARES_ENODATA   The response did not contain an answer to the query.
37
38       ARES_ENOMEM    Memory was exhausted.
39

SEE ALSO

41       ares_gethostbyname(3), ares_free_hostent(3)
42

AUTHOR

44       Dominick Meglio
45       Copyright 2005 by Dominick Meglio.    Andrew  Selivanov  <andrew.seliv‐
46       anov@gmail.com>
47
48
49
50                                  20 Nov 2009         ARES_PARSE_AAAA_REPLY(3)
Impressum