mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-04 16:05:17 +00:00
[trac554] Added namespace when "buffer" is used
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
|
||||||
#include <asiolink/io_asio_socket.h>
|
#include <asiolink/io_asio_socket.h>
|
||||||
#include <asiolink/io_endpoint.h>
|
#include <asiolink/io_endpoint.h>
|
||||||
#include <asiolink/io_service.h>
|
#include <asiolink/io_service.h>
|
||||||
@@ -220,7 +221,7 @@ UDPSocket<C>::asyncSend(const void* data, size_t length,
|
|||||||
assert(endpoint->getProtocol() == IPPROTO_UDP);
|
assert(endpoint->getProtocol() == IPPROTO_UDP);
|
||||||
const UDPEndpoint* udp_endpoint =
|
const UDPEndpoint* udp_endpoint =
|
||||||
static_cast<const UDPEndpoint*>(endpoint);
|
static_cast<const UDPEndpoint*>(endpoint);
|
||||||
socket_.async_send_to(buffer(data, length),
|
socket_.async_send_to(asio::buffer(data, length),
|
||||||
udp_endpoint->getASIOEndpoint(), callback);
|
udp_endpoint->getASIOEndpoint(), callback);
|
||||||
} else {
|
} else {
|
||||||
isc_throw(SocketNotOpen,
|
isc_throw(SocketNotOpen,
|
||||||
@@ -243,7 +244,7 @@ UDPSocket<C>::asyncReceive(void* data, size_t length, size_t,
|
|||||||
assert(endpoint->getProtocol() == IPPROTO_UDP);
|
assert(endpoint->getProtocol() == IPPROTO_UDP);
|
||||||
UDPEndpoint* udp_endpoint = static_cast<UDPEndpoint*>(endpoint);
|
UDPEndpoint* udp_endpoint = static_cast<UDPEndpoint*>(endpoint);
|
||||||
|
|
||||||
socket_.async_receive_from(buffer(data, length),
|
socket_.async_receive_from(asio::buffer(data, length),
|
||||||
udp_endpoint->getASIOEndpoint(), callback);
|
udp_endpoint->getASIOEndpoint(), callback);
|
||||||
} else {
|
} else {
|
||||||
isc_throw(SocketNotOpen,
|
isc_throw(SocketNotOpen,
|
||||||
|
Reference in New Issue
Block a user