Changes to keep server running in spite of send errors to the client.

This commit is contained in:
chris 2003-11-11 06:15:30 +00:00
parent 22237b0950
commit ccf6304d8f

View File

@ -22,17 +22,19 @@ public:
socket_.async_sendto(data_, length, sender_address_,
boost::bind(&dgram_handler::handle_sendto, this, _1, _2));
}
}
void handle_sendto(const socket_error& error, size_t length)
{
if (!error)
else
{
socket_.async_recvfrom(data_, max_length, sender_address_,
boost::bind(&dgram_handler::handle_recvfrom, this, _1, _2));
}
}
void handle_sendto(const socket_error& error, size_t length)
{
socket_.async_recvfrom(data_, max_length, sender_address_,
boost::bind(&dgram_handler::handle_recvfrom, this, _1, _2));
}
private:
demuxer& demuxer_;
dgram_socket socket_;