mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Network): Replace deprecated boost::asio::null_buffers() with asy… (#24314)
This commit is contained in:
@@ -188,8 +188,10 @@ protected:
|
|||||||
_socket.async_write_some(boost::asio::buffer(buffer.GetReadPointer(), buffer.GetActiveSize()), std::bind(&Socket<T>::WriteHandler,
|
_socket.async_write_some(boost::asio::buffer(buffer.GetReadPointer(), buffer.GetActiveSize()), std::bind(&Socket<T>::WriteHandler,
|
||||||
this->shared_from_this(), std::placeholders::_1, std::placeholders::_2));
|
this->shared_from_this(), std::placeholders::_1, std::placeholders::_2));
|
||||||
#else
|
#else
|
||||||
_socket.async_write_some(boost::asio::null_buffers(), std::bind(&Socket<T>::WriteHandlerWrapper,
|
_socket.async_wait(tcp::socket::wait_write, [self = this->shared_from_this()](boost::system::error_code error)
|
||||||
this->shared_from_this(), std::placeholders::_1, std::placeholders::_2));
|
{
|
||||||
|
self->WriteHandlerWrapper(error, 0);
|
||||||
|
});
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user