|
@@ -65,39 +65,50 @@ public:
|
|
/// a standard exception if memory allocation fails inside the method.
|
|
/// a standard exception if memory allocation fails inside the method.
|
|
///
|
|
///
|
|
inline QRAttributes();
|
|
inline QRAttributes();
|
|
|
|
+
|
|
/// The destructor.
|
|
/// The destructor.
|
|
///
|
|
///
|
|
/// This method never throws an exception.
|
|
/// This method never throws an exception.
|
|
///
|
|
///
|
|
inline ~QRAttributes();
|
|
inline ~QRAttributes();
|
|
|
|
+
|
|
/// \brief Set query opcode.
|
|
/// \brief Set query opcode.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setQueryOpCode(const int opcode);
|
|
inline void setQueryOpCode(const int opcode);
|
|
|
|
+
|
|
/// \brief Set IP version carrying a query.
|
|
/// \brief Set IP version carrying a query.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setQueryIPVersion(const int ip_version);
|
|
inline void setQueryIPVersion(const int ip_version);
|
|
|
|
+
|
|
/// \brief Set transport protocol carrying a query.
|
|
/// \brief Set transport protocol carrying a query.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setQueryTransportProtocol(const int transport_protocol);
|
|
inline void setQueryTransportProtocol(const int transport_protocol);
|
|
|
|
+
|
|
/// \brief Set query EDNS attributes.
|
|
/// \brief Set query EDNS attributes.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setQueryEDNS(const bool is_edns_0, const bool is_edns_badver);
|
|
inline void setQueryEDNS(const bool is_edns_0, const bool is_edns_badver);
|
|
|
|
+
|
|
/// \brief Set query DO bit.
|
|
/// \brief Set query DO bit.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setQueryDO(const bool is_dnssec_ok);
|
|
inline void setQueryDO(const bool is_dnssec_ok);
|
|
|
|
+
|
|
/// \brief Set query TSIG attributes.
|
|
/// \brief Set query TSIG attributes.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setQuerySig(const bool is_tsig, const bool is_sig0,
|
|
inline void setQuerySig(const bool is_tsig, const bool is_sig0,
|
|
const bool is_badsig);
|
|
const bool is_badsig);
|
|
|
|
+
|
|
/// \brief Set zone origin.
|
|
/// \brief Set zone origin.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setOrigin(const std::string& origin);
|
|
inline void setOrigin(const std::string& origin);
|
|
|
|
+
|
|
/// \brief Set if the answer has sent.
|
|
/// \brief Set if the answer has sent.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void answerWasSent();
|
|
inline void answerWasSent();
|
|
|
|
+
|
|
/// \brief Set if the response is truncated.
|
|
/// \brief Set if the response is truncated.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void setResponseTruncated(const bool is_truncated);
|
|
inline void setResponseTruncated(const bool is_truncated);
|
|
|
|
+
|
|
/// \brief Reset attributes.
|
|
/// \brief Reset attributes.
|
|
/// \throw None
|
|
/// \throw None
|
|
inline void reset();
|
|
inline void reset();
|