Subversion Repositories HomeAutomation

Rev

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

Rev 1592 Rev 1593
Line 68... Line 68...
68
   
68
   
69
    Client::Disconnect();
69
    Client::Disconnect();
70
}
70
}
71
 
71
 
72
void UdpClient::Send(Buffer data)
72
void UdpClient::Send(Buffer data)
-
 
73
{
-
 
74
    if (this->socket_->is_open())
73
{
75
    {
74
    this->socket_->send_to(boost::asio::buffer(data), this->endpoint_);
76
        this->socket_->send_to(boost::asio::buffer(data), this->endpoint_);
-
 
77
    }
-
 
78
    else
-
 
79
    {
-
 
80
        this->Disconnect();
-
 
81
    }
75
}
82
}
76
 
83
 
77
void UdpClient::Read()
84
void UdpClient::Read()
78
{
85
{
79
    Client::Read();
86
    Client::Read();