|
|
|
@ -12,7 +12,6 @@
@@ -12,7 +12,6 @@
|
|
|
|
|
#include <memory> |
|
|
|
|
|
|
|
|
|
#include <boost/asio.hpp> |
|
|
|
|
#include <boost/bind.hpp> |
|
|
|
|
#include <boost/algorithm/string.hpp> |
|
|
|
|
|
|
|
|
|
#include "Base.h" |
|
|
|
@ -1321,8 +1320,8 @@ namespace http {
@@ -1321,8 +1320,8 @@ namespace http {
|
|
|
|
|
void HTTPServer::Accept () |
|
|
|
|
{ |
|
|
|
|
auto newSocket = std::make_shared<boost::asio::ip::tcp::socket> (m_Service); |
|
|
|
|
m_Acceptor.async_accept (*newSocket, boost::bind (&HTTPServer::HandleAccept, this, |
|
|
|
|
boost::asio::placeholders::error, newSocket)); |
|
|
|
|
m_Acceptor.async_accept (*newSocket, std::bind (&HTTPServer::HandleAccept, this, |
|
|
|
|
std::placeholders::_1, newSocket)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void HTTPServer::HandleAccept(const boost::system::error_code& ecode, |
|
|
|
|