|
|
@ -26,7 +26,6 @@ |
|
|
|
#include <ctime> |
|
|
|
#include <chrono> |
|
|
|
#include <boost/thread.hpp> |
|
|
|
#include <boost/asio.hpp> |
|
|
|
#include "vector_ref.h" |
|
|
|
#include "Common.h" |
|
|
|
#include "CommonIO.h" |
|
|
@ -34,6 +33,8 @@ |
|
|
|
#include "FixedHash.h" |
|
|
|
#include "Terminal.h" |
|
|
|
|
|
|
|
namespace boost { namespace asio { namespace ip { template<class T>class basic_endpoint; class tcp; } } } |
|
|
|
|
|
|
|
namespace dev |
|
|
|
{ |
|
|
|
|
|
|
@ -125,6 +126,7 @@ public: |
|
|
|
void append(std::string const& _t) { m_sstr << EthGreen "\"" + _t + "\"" EthReset; } |
|
|
|
void append(bytes const& _t) { m_sstr << EthYellow "%" << toHex(_t) << EthReset; } |
|
|
|
void append(bytesConstRef _t) { m_sstr << EthYellow "%" << toHex(_t) << EthReset; } |
|
|
|
void append(boost::asio::ip::basic_endpoint<boost::asio::ip::tcp> const& _t); |
|
|
|
template <class T> void append(std::vector<T> const& _t) |
|
|
|
{ |
|
|
|
m_sstr << EthWhite "[" EthReset; |
|
|
@ -172,10 +174,6 @@ public: |
|
|
|
{ |
|
|
|
m_sstr << toString(_t); |
|
|
|
} |
|
|
|
template <class T> void append(boost::asio::ip::tcp::endpoint const& _t) |
|
|
|
{ |
|
|
|
m_sstr << EthNavyUnder "tcp://" << _t << EthReset; |
|
|
|
} |
|
|
|
|
|
|
|
protected: |
|
|
|
bool m_autospacing = false; |
|
|
|