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:
parent
c0d93bbd5f
commit
c747b20e2b
@ -862,7 +862,7 @@ namespace openvpn {
|
|||||||
if (!is_sock_open())
|
if (!is_sock_open())
|
||||||
return;
|
return;
|
||||||
BufferPtr buf(new BufferAllocated(256, 0));
|
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=Ptr(this), sock=socket, buf](const asio::error_code& error, const size_t bytes_recvd)
|
||||||
{
|
{
|
||||||
self->handle_recv(error, bytes_recvd, *buf, sock.get());
|
self->handle_recv(error, bytes_recvd, *buf, sock.get());
|
||||||
@ -909,7 +909,7 @@ namespace openvpn {
|
|||||||
if (!is_sock_open())
|
if (!is_sock_open())
|
||||||
return;
|
return;
|
||||||
BufferAllocated& buf = *content_out.front();
|
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=Ptr(this), sock=socket](const asio::error_code& error, const size_t bytes_sent)
|
||||||
{
|
{
|
||||||
self->handle_send(error, bytes_sent, sock.get());
|
self->handle_send(error, bytes_sent, sock.get());
|
||||||
|
Loading…
Reference in New Issue
Block a user