Commit 6dad3efd authored by Stephen Morris's avatar Stephen Morris
Browse files

[trac554] Added namespace when "buffer" is used

parent 1355eed8
...@@ -28,6 +28,7 @@ ...@@ -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, ...@@ -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, ...@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment