Commit 92d22eed authored by Dominik Charousset's avatar Dominik Charousset

Print new_data_msg content hex formatted

parent 892e6ee7
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <iomanip> #include <iomanip>
#include "caf/meta/type_name.hpp" #include "caf/meta/type_name.hpp"
#include "caf/meta/hex_formatted.hpp"
#include "caf/io/handle.hpp" #include "caf/io/handle.hpp"
#include "caf/io/accept_handle.hpp" #include "caf/io/accept_handle.hpp"
...@@ -58,7 +59,8 @@ struct new_data_msg { ...@@ -58,7 +59,8 @@ struct new_data_msg {
/// @relates new_data_msg /// @relates new_data_msg
template <class Inspector> template <class Inspector>
typename Inspector::result_type inspect(Inspector& f, new_data_msg& x) { typename Inspector::result_type inspect(Inspector& f, new_data_msg& x) {
return f(meta::type_name("new_data_msg"), x.handle, x.buf); return f(meta::type_name("new_data_msg"), x.handle,
meta::hex_formatted(), x.buf);
} }
/// Signalizes that a certain amount of bytes has been written. /// Signalizes that a certain amount of bytes has been written.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment