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
26       addrttls,  and  then  *naddrttls  is  set  to  the number of records so
27       stored.  Note that the memory for these  records  is  supplied  by  the
28       caller.
29

RETURN VALUES

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

SEE ALSO

42       ares_gethostbyname(3), ares_free_hostent(3)
43

AUTHOR

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