Base class for friendly handling of DNS query responses. More...
#include <llares.h>


Public Member Functions | |
| const dns_rrs_t & | additional () const |
| const dns_rrs_t & | answers () const |
| const dns_rrs_t & | authorities () const |
| const std::string & | query () const |
| int | result () const |
| bool | valid () const |
Protected Member Functions | |
| int | parseRR (const char *buf, size_t len, const char *&pos, LLPointer< LLDnsRecord > &r) |
| int | parseSection (const char *buf, size_t len, size_t count, const char *&pos, dns_rrs_t &rrs) |
Base class for friendly handling of DNS query responses.
This class parses a DNS response and represents it in a friendly manner.
| const dns_rrs_t& LLQueryResponder::additional | ( | ) | const [inline] |
Return the contents of the "additional records" section of the response.
| const dns_rrs_t& LLQueryResponder::answers | ( | ) | const [inline] |
Return the contents of the "answers" section of the response.
| const dns_rrs_t& LLQueryResponder::authorities | ( | ) | const [inline] |
Return the contents of the "authorities" section of the response.
| int LLQueryResponder::parseRR | ( | const char * | buf, | |
| size_t | len, | |||
| const char *& | pos, | |||
| LLPointer< LLDnsRecord > & | r | |||
| ) | [protected] |
Parse a single RR.

| int LLQueryResponder::parseSection | ( | const char * | buf, | |
| size_t | len, | |||
| size_t | count, | |||
| const char *& | pos, | |||
| dns_rrs_t & | rrs | |||
| ) | [protected] |
Parse one section of a response.

| const std::string& LLQueryResponder::query | ( | ) | const [inline] |
Return the query embedded in the response.
| int LLQueryResponder::result | ( | ) | const [inline] |
The more detailed result of parsing the response.
| bool LLQueryResponder::valid | ( | ) | const [inline] |
Indicate whether the response could be parsed successfully.
1.6.3