Line 0
Link Here
|
|
|
1 |
--- src/net/serveraccepthelper.h.orig 2017-08-16 12:24:03 UTC |
2 |
+++ src/net/serveraccepthelper.h |
3 |
@@ -122,8 +122,12 @@ class ServerAcceptHelper : public ServerAcceptInterfac |
4 |
const boost::system::error_code &error) |
5 |
{ |
6 |
if (!error) { |
7 |
+#if BOOST_VERSION < 106600 |
8 |
boost::asio::socket_base::non_blocking_io command(true); |
9 |
acceptedSocket->io_control(command); |
10 |
+#else |
11 |
+ acceptedSocket->non_blocking(true); |
12 |
+#endif |
13 |
acceptedSocket->set_option(typename P::no_delay(true)); |
14 |
acceptedSocket->set_option(boost::asio::socket_base::keep_alive(true)); |
15 |
boost::shared_ptr<SessionData> sessionData(new SessionData(acceptedSocket, m_lobbyThread->GetNextSessionId(), m_lobbyThread->GetSessionDataCallback(), *m_ioService)); |