1 --- pokerth-1.1.2-rc/src/net/common/clientthread.cpp.orig 2017-08-16 14:24:03.000000000 +0200
2 +++ pokerth-1.1.2-rc/src/net/common/clientthread.cpp 2019-05-06 20:01:16.461183436 +0200
4 newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v6()));
6 newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v4()));
7 - boost::asio::socket_base::non_blocking_io command(true);
8 - newSock->io_control(command);
9 + newSock->non_blocking(true);
10 newSock->set_option(tcp::no_delay(true));
11 newSock->set_option(boost::asio::socket_base::keep_alive(true));
13 --- pokerth-1.1.2-rc/src/net/serveraccepthelper.h.orig 2017-08-16 14:24:03.000000000 +0200
14 +++ pokerth-1.1.2-rc/src/net/serveraccepthelper.h 2019-05-06 20:28:04.582779720 +0200
16 const boost::system::error_code &error)
19 - boost::asio::socket_base::non_blocking_io command(true);
20 - acceptedSocket->io_control(command);
21 + acceptedSocket->non_blocking(true);
22 acceptedSocket->set_option(typename P::no_delay(true));
23 acceptedSocket->set_option(boost::asio::socket_base::keep_alive(true));
24 boost::shared_ptr<SessionData> sessionData(new SessionData(acceptedSocket, m_lobbyThread->GetNextSessionId(), m_lobbyThread->GetSessionDataCallback(), *m_ioService));
25 --- pokerth-1.1.2-rc/src/net/common/serveracceptwebhelper.cpp.orig 2017-08-16 14:24:03.000000000 +0200
26 +++ pokerth-1.1.2-rc/src/net/common/serveracceptwebhelper.cpp 2020-07-31 21:14:47.238374433 +0200
29 m_webSocketServer->init_asio(m_ioService.get());
31 - m_webSocketServer->set_validate_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::validate), this, _1));
32 - m_webSocketServer->set_open_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::on_open), this, _1));
33 - m_webSocketServer->set_close_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::on_close), this, _1));
34 - m_webSocketServer->set_message_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::on_message), this, _1, _2));
35 + m_webSocketServer->set_validate_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::validate), this, boost::placeholders::_1));
36 + m_webSocketServer->set_open_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::on_open), this, boost::placeholders::_1));
37 + m_webSocketServer->set_close_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::on_close), this, boost::placeholders::_1));
38 + m_webSocketServer->set_message_handler(boost::bind(boost::mem_fn(&ServerAcceptWebHelper::on_message), this, boost::placeholders::_1, boost::placeholders::_2));
40 m_webSocketServer->listen(serverPort);
41 m_webSocketServer->start_accept();