34 #include "../api_network.h"
35 #include "../../Core/System/sharedptr.h"
36 #include "../../Core/Text/string_types.h"
40 class CL_DNSPacket_Impl;
61 bool recursion_desired,
75 unsigned short get_query_id()
const;
80 bool is_query()
const;
85 bool is_response()
const;
90 opcode_inverse_query = 1,
97 int get_opcode()
const;
102 bool is_authoriative_answer()
const;
107 bool is_truncated()
const;
112 bool is_recursion_desired()
const;
117 bool is_recursion_available()
const;
122 response_format_error = 1,
123 response_server_failure = 2,
124 response_name_error = 3,
125 response_not_implemented = 4,
132 int get_response_code()
const;
137 int get_question_count()
const;
142 int get_answer_count()
const;
147 int get_nameserver_count()
const;
152 int get_additional_count()
const;
159 CL_String get_question_name(
int index)
const;
166 int get_question_type(
int index)
const;
173 int get_question_class(
int index)
const;
210 void set_query_id(
unsigned short query_id);
217 CL_SharedPtr<CL_DNSPacket_Impl> impl;