|
@@ -39,7 +39,7 @@ UDPCallback::UDPCallback (RawBufferPtr& buffer, const size_t buf_size,
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
void
|
|
-UDPCallback::operator ()(const boost::asio::error_code error_code,
|
|
|
|
|
|
+UDPCallback::operator ()(const boost::system::error_code error_code,
|
|
const size_t bytes_transferred) {
|
|
const size_t bytes_transferred) {
|
|
|
|
|
|
// Save the result state and number of bytes transferred.
|
|
// Save the result state and number of bytes transferred.
|
|
@@ -112,7 +112,7 @@ NameChangeUDPListener::open(isc::asiolink::IOService& io_service) {
|
|
|
|
|
|
// Bind the low level socket to our endpoint.
|
|
// Bind the low level socket to our endpoint.
|
|
asio_socket_->bind(endpoint.getASIOEndpoint());
|
|
asio_socket_->bind(endpoint.getASIOEndpoint());
|
|
- } catch (boost::asio::system_error& ex) {
|
|
|
|
|
|
+ } catch (boost::system::system_error& ex) {
|
|
asio_socket_.reset();
|
|
asio_socket_.reset();
|
|
isc_throw (NcrUDPError, ex.code().message());
|
|
isc_throw (NcrUDPError, ex.code().message());
|
|
}
|
|
}
|
|
@@ -142,7 +142,7 @@ NameChangeUDPListener::close() {
|
|
if (asio_socket_->is_open()) {
|
|
if (asio_socket_->is_open()) {
|
|
try {
|
|
try {
|
|
asio_socket_->close();
|
|
asio_socket_->close();
|
|
- } catch (boost::asio::system_error& ex) {
|
|
|
|
|
|
+ } catch (boost::system::system_error& ex) {
|
|
// It is really unlikely that this will occur.
|
|
// It is really unlikely that this will occur.
|
|
// If we do reopen later it will be with a new socket
|
|
// If we do reopen later it will be with a new socket
|
|
// instance. Repackage exception as one that is conformant
|
|
// instance. Repackage exception as one that is conformant
|
|
@@ -180,7 +180,7 @@ NameChangeUDPListener::receiveCompletionHandler(const bool successful,
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- boost::asio::error_code error_code = callback->getErrorCode();
|
|
|
|
|
|
+ boost::system::error_code error_code = callback->getErrorCode();
|
|
if (error_code.value() == boost::asio::error::operation_aborted) {
|
|
if (error_code.value() == boost::asio::error::operation_aborted) {
|
|
// A shutdown cancels all outstanding reads. For this reason,
|
|
// A shutdown cancels all outstanding reads. For this reason,
|
|
// it can be an expected event, so log it as a debug message.
|
|
// it can be an expected event, so log it as a debug message.
|
|
@@ -247,7 +247,7 @@ NameChangeUDPSender::open(isc::asiolink::IOService& io_service) {
|
|
|
|
|
|
// Bind the low leve socket to our endpoint.
|
|
// Bind the low leve socket to our endpoint.
|
|
asio_socket_->bind(endpoint.getASIOEndpoint());
|
|
asio_socket_->bind(endpoint.getASIOEndpoint());
|
|
- } catch (boost::asio::system_error& ex) {
|
|
|
|
|
|
+ } catch (boost::system::system_error& ex) {
|
|
isc_throw (NcrUDPError, ex.code().message());
|
|
isc_throw (NcrUDPError, ex.code().message());
|
|
}
|
|
}
|
|
|
|
|
|
@@ -274,7 +274,7 @@ NameChangeUDPSender::close() {
|
|
if (asio_socket_->is_open()) {
|
|
if (asio_socket_->is_open()) {
|
|
try {
|
|
try {
|
|
asio_socket_->close();
|
|
asio_socket_->close();
|
|
- } catch (boost::asio::system_error& ex) {
|
|
|
|
|
|
+ } catch (boost::system::system_error& ex) {
|
|
// It is really unlikely that this will occur.
|
|
// It is really unlikely that this will occur.
|
|
// If we do reopen later it will be with a new socket
|
|
// If we do reopen later it will be with a new socket
|
|
// instance. Repackage exception as one that is conformant
|
|
// instance. Repackage exception as one that is conformant
|
|
@@ -337,7 +337,7 @@ NameChangeUDPSender::sendCompletionHandler(const bool successful,
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
// On a failure, log the error and set the result to ERROR.
|
|
// On a failure, log the error and set the result to ERROR.
|
|
- boost::asio::error_code error_code = send_callback->getErrorCode();
|
|
|
|
|
|
+ boost::system::error_code error_code = send_callback->getErrorCode();
|
|
if (error_code.value() == boost::asio::error::operation_aborted) {
|
|
if (error_code.value() == boost::asio::error::operation_aborted) {
|
|
LOG_ERROR(dhcp_ddns_logger, DHCP_DDNS_NCR_UDP_SEND_CANCELED)
|
|
LOG_ERROR(dhcp_ddns_logger, DHCP_DDNS_NCR_UDP_SEND_CANCELED)
|
|
.arg(error_code.message());
|
|
.arg(error_code.message());
|