Subversion Repositories HomeAutomation

Rev

Rev 1987 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1987 Rev 1989
Line 73... Line 73...
73
 
73
 
74
void TcpClient::Send(common::Byteset data)
74
void TcpClient::Send(common::Byteset data)
75
{
75
{
76
  LOG_DEBUG_ENTER;
76
  LOG_DEBUG_ENTER;
77
 
77
 
78
  log::Debug(log_module_, "data=\"%s\", size=%u", std::string(data.begin(), data.end()).data(), data.size());
78
  //log::Debug(log_module_, "data=\"%s\", size=%u", std::string(data.begin(), data.end()).data(), data.size());
79
 
79
 
80
  try
80
  try
81
  {
81
  {
82
    if (this->socket_->is_open())
82
    if (this->socket_->is_open())
83
    {
83
    {
Line 97... Line 97...
97
{
97
{
98
  LOG_DEBUG_ENTER;
98
  LOG_DEBUG_ENTER;
99
 
99
 
100
  Client::Read();
100
  Client::Read();
101
 
101
 
102
  log::Debug(log_module_, "this->buffer_.capacity()=%u", this->buffer_.capacity());
102
  //log::Debug(log_module_, "this->buffer_.capacity()=%u", this->buffer_.capacity());
103
   
103
   
104
  this->socket_->async_read_some(boost::asio::buffer(this->buffer_.data(), this->buffer_.capacity()),
104
  this->socket_->async_read_some(boost::asio::buffer(this->buffer_.data(), this->buffer_.capacity()),
105
                                 boost::bind(&TcpClient::ReadHandler,
105
                                 boost::bind(&TcpClient::ReadHandler,
106
                                             this,
106
                                             this,
107
                                             boost::asio::placeholders::error,
107
                                             boost::asio::placeholders::error,