// once in the lifetime of a Message instance. Therefore, response_ is a
// pointer reference thus allowing this class to replace the object
// pointed to with a new Message instance each time a message is
- // received. This allows a single DNSClientImpl instance to be used in
- // for multiple, sequential IOFetch calls.
+ // received. This allows a single DNSClientImpl instance to be used for
+ // multiple, sequential IOFetch calls. (@todo Trac# 3286 has been opened
+ // against dns::Message::fromWire. Should the behavior of fromWire change
+ // the behavior here with could be rexamined).
D2UpdateMessagePtr& response_;
// A caller-supplied external callback which is invoked when DNS message
// exchange is complete or interrupted.
/// @brief Creates a hex text dump of the given data buffer.
///
+/// This method is not used for testing but is handy for debugging. It creates
+/// a pleasantly formatted string of 2-digits per byte separated by spaces with
+/// 16 bytes per line.
+///
/// @param data pointer to the data to dump
/// @param len size (in bytes) of data
extern std::string toHexText(const uint8_t* data, size_t len);