diff --git a/src/slic3r/GUI/HttpServer.hpp b/src/slic3r/GUI/HttpServer.hpp index 0d303814c..c545ab9b2 100644 --- a/src/slic3r/GUI/HttpServer.hpp +++ b/src/slic3r/GUI/HttpServer.hpp @@ -13,7 +13,6 @@ #include #include -using namespace boost; using namespace boost::system; using namespace boost::asio; @@ -74,21 +73,21 @@ public: class session { - asio::streambuf buff; + boost::asio::streambuf buff; http_headers headers; static void read_body(std::shared_ptr pThis) { int nbuffer = 1000; std::shared_ptr> bufptr = std::make_shared>(nbuffer); - asio::async_read(pThis->socket, boost::asio::buffer(*bufptr, nbuffer), [pThis](const boost::beast::error_code& e, std::size_t s) + boost::asio::async_read(pThis->socket, boost::asio::buffer(*bufptr, nbuffer), [pThis](const boost::beast::error_code& e, std::size_t s) { }); } static void read_next_line(std::shared_ptr pThis) { - asio::async_read_until(pThis->socket, pThis->buff, '\r', [pThis](const boost::beast::error_code& e, std::size_t s) + boost::asio::async_read_until(pThis->socket, pThis->buff, '\r', [pThis](const boost::beast::error_code& e, std::size_t s) { std::string line, ignore; std::istream stream{ &pThis->buff }; @@ -101,7 +100,7 @@ class session if (pThis->headers.content_length() == 0) { std::shared_ptr str = std::make_shared(pThis->headers.get_response()); - asio::async_write(pThis->socket, boost::asio::buffer(str->c_str(), str->length()), [pThis, str](const boost::beast::error_code& e, std::size_t s) + boost::asio::async_write(pThis->socket, boost::asio::buffer(str->c_str(), str->length()), [pThis, str](const boost::beast::error_code& e, std::size_t s) { std::cout << "done" << std::endl; }); @@ -120,7 +119,7 @@ class session static void read_first_line(std::shared_ptr pThis) { - asio::async_read_until(pThis->socket, pThis->buff, '\r', [pThis](const boost::beast::error_code& e, std::size_t s) + boost::asio::async_read_until(pThis->socket, pThis->buff, '\r', [pThis](const boost::beast::error_code& e, std::size_t s) { std::string line, ignore; std::istream stream{ &pThis->buff };