0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

asio: deal with symbol renaming in latest github master

mutable_buffers_1 -> mutable_buffer
const_buffers_1 -> const_buffer
This commit is contained in:
James Yonan 2017-02-27 13:39:02 -07:00 committed by Lev Stipakov
parent c0d93bbd5f
commit c747b20e2b
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -862,7 +862,7 @@ namespace openvpn {
if (!is_sock_open())
return;
BufferPtr buf(new BufferAllocated(256, 0));
socket->async_receive(buf->mutable_buffers_1_clamp(),
socket->async_receive(buf->mutable_buffer_clamp(),
[self=Ptr(this), sock=socket, buf](const asio::error_code& error, const size_t bytes_recvd)
{
self->handle_recv(error, bytes_recvd, *buf, sock.get());
@ -909,7 +909,7 @@ namespace openvpn {
if (!is_sock_open())
return;
BufferAllocated& buf = *content_out.front();
socket->async_send(buf.const_buffers_1_clamp(),
socket->async_send(buf.const_buffer_clamp(),
[self=Ptr(this), sock=socket](const asio::error_code& error, const size_t bytes_sent)
{
self->handle_send(error, bytes_sent, sock.get());