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 81... Line 81...
81
 
81
 
82
void UdpClient::Send(common::Byteset data)
82
void UdpClient::Send(common::Byteset data)
83
{
83
{
84
  LOG_DEBUG_ENTER;
84
  LOG_DEBUG_ENTER;
85
 
85
 
86
  log::Debug(log_module_, "data=\"%s\", size=%u", std::string(data.begin(), data.end()).data(), data.size());
86
  //log::Debug(log_module_, "data=\"%s\", size=%u", std::string(data.begin(), data.end()).data(), data.size());
87
 
87
 
88
  try
88
  try
89
  {
89
  {
90
    if (this->socket_->is_open())
90
    if (this->socket_->is_open())
91
    {
91
    {
Line 105... Line 105...
105
{
105
{
106
  LOG_DEBUG_ENTER;
106
  LOG_DEBUG_ENTER;
107
 
107
 
108
  Client::Read();
108
  Client::Read();
109
 
109
 
110
  log::Debug(log_module_, "this->buffer_.capacity()=%u", this->buffer_.capacity());
110
  //log::Debug(log_module_, "this->buffer_.capacity()=%u", this->buffer_.capacity());
111
 
111
 
112
  this->socket_->async_receive(boost::asio::buffer(this->buffer_.data(), this->buffer_.capacity()),
112
  this->socket_->async_receive(boost::asio::buffer(this->buffer_.data(), this->buffer_.capacity()),
113
                               boost::bind(&UdpClient::ReadHandler,
113
                               boost::bind(&UdpClient::ReadHandler,
114
                                           this,
114
                                           this,
115
                                           boost::asio::placeholders::error,
115
                                           boost::asio::placeholders::error,