Subversion Repositories HomeAutomation

Rev

Rev 1596 | Rev 1599 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1596 Rev 1597
Line 115... Line 115...
115
    if (this->acceptor_.use_count() != 0)
115
    if (this->acceptor_.use_count() != 0)
116
    {
116
    {
117
        return;
117
        return;
118
    }
118
    }
119
   
119
   
-
 
120
    try
-
 
121
    {
120
    if (this->socket_.is_open())
122
        if (this->socket_.is_open())
121
    {
123
        {
122
        this->socket_.send(boost::asio::buffer(data.Get(), data.GetMaxSize()));
124
            this->socket_.send(boost::asio::buffer(data.Get(), data.GetMaxSize()));
123
    }
125
        }
124
    else
126
    }
-
 
127
    catch (std::exception& e)
125
    {
128
    {
126
        this->Disconnect();
129
        this->Disconnect();
-
 
130
        //throw std::runtime_error(e.what());
127
    }
131
    }
128
}
132
}
129
 
133
 
130
void TcpClient::Read()
134
void TcpClient::Read()
131
{
135
{