#include <dns_packet.h>
Attributes | |
| enum | Opcode { opcode_query = 0, opcode_inverse_query = 1, opcode_status = 2 } |
| enum | ResponseCode { response_ok = 0, response_format_error = 1, response_server_failure = 2, response_name_error = 3, response_not_implemented = 4, response_refused = 5 } |
| const CL_DataBuffer & | get_data () const |
| unsigned short | get_query_id () const |
| bool | is_query () const |
| Is Query. | |
| bool | is_response () const |
| Is Response. | |
| int | get_opcode () const |
| Get Opcode. | |
| bool | is_authoriative_answer () const |
| Is Authoriative answer. | |
| bool | is_truncated () const |
| Is Truncated. | |
| bool | is_recursion_desired () const |
| Is Recursion desired. | |
| bool | is_recursion_available () const |
| Is Recursion available. | |
| int | get_response_code () const |
| Get Response code. | |
| int | get_question_count () const |
| Get Question count. | |
| int | get_answer_count () const |
| Get Answer count. | |
| int | get_nameserver_count () const |
| Get Nameserver count. | |
| int | get_additional_count () const |
| Get Additional count. | |
| CL_String | get_question_name (int index) const |
| Get question name. | |
| int | get_question_type (int index) const |
| Get question type. | |
| int | get_question_class (int index) const |
| Get question class. | |
| CL_DNSResourceRecord | get_answer (int index) const |
| Get answer. | |
| CL_DNSResourceRecord | get_nameserver (int index) const |
| Get nameserver. | |
| CL_DNSResourceRecord | get_additional (int index) const |
| Get additional. | |
Public Member Functions | |
Construction | |
| CL_DNSPacket () | |
| CL_DNSPacket (const CL_DataBuffer &data) | |
| Constructs a DNSPacket. | |
| CL_DNSPacket (int query_id, int opcode, bool recursion_desired, const CL_String &question_name, int question_type, int question_class) | |
| ~CL_DNSPacket () | |
Operations | |
| void | set_data (const CL_DataBuffer &data) |
| Set data. | |
| void | set_query_id (unsigned short query_id) |
| Set query id. | |
|
|
|
|
|
|
|
|
|
|
|
Constructs a DNSPacket.
|
|
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
Get additional.
|
|
|
Get Additional count.
|
|
|
Get answer.
|
|
|
Get Answer count.
|
|
|
|
|
|
Get nameserver.
|
|
|
Get Nameserver count.
|
|
|
Get Opcode.
|
|
|
|
|
|
Get question class.
|
|
|
Get Question count.
|
|
|
Get question name.
|
|
|
Get question type.
|
|
|
Get Response code.
|
|
|
Is Authoriative answer.
|
|
|
Is Query.
|
|
|
Is Recursion available.
|
|
|
Is Recursion desired.
|
|
|
Is Response.
|
|
|
Is Truncated.
|
|
|
Set data.
|
|
|
Set query id.
|
1.4.6