mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
boost 1.87
This commit is contained in:
parent
132500b292
commit
1517dcca6c
@ -199,7 +199,11 @@ void NetworkConnection::close()
|
|||||||
{
|
{
|
||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
socket->close(ec);
|
socket->close(ec);
|
||||||
|
#if BOOST_VERSION >= 108700
|
||||||
|
timer->cancel();
|
||||||
|
#else
|
||||||
timer->cancel(ec);
|
timer->cancel(ec);
|
||||||
|
#endif
|
||||||
|
|
||||||
//NOTE: ignoring error code, intended
|
//NOTE: ignoring error code, intended
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,11 @@
|
|||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
#if BOOST_VERSION >= 108700
|
||||||
|
using NetworkContext = boost::asio::io_context;
|
||||||
|
#else
|
||||||
using NetworkContext = boost::asio::io_service;
|
using NetworkContext = boost::asio::io_service;
|
||||||
|
#endif
|
||||||
using NetworkSocket = boost::asio::ip::tcp::socket;
|
using NetworkSocket = boost::asio::ip::tcp::socket;
|
||||||
using NetworkAcceptor = boost::asio::ip::tcp::acceptor;
|
using NetworkAcceptor = boost::asio::ip::tcp::acceptor;
|
||||||
using NetworkBuffer = boost::asio::streambuf;
|
using NetworkBuffer = boost::asio::streambuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user