forked from boostorg/beast
Tidy up namespace qualifiers
This commit is contained in:
1 parent
ddd67ef30e
commit
c367309122
6 files changed
+17
-19
No files matched your search
@@ -13,6 +13,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace system {
|
||||
template<>
|
||||
struct is_error_code_enum<beast::http::error>
|
||||
@@ -20,9 +21,7 @@ struct is_error_code_enum<beast::http::error>
|
||||
static bool const value = true;
|
||||
};
|
||||
} // system
|
||||
} // boost
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#define BOOST_BEAST_WEBSOCKET_IMPL_ERROR_IPP
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace system {
|
||||
template<>
|
||||
struct is_error_code_enum<beast::websocket::error>
|
||||
@@ -18,9 +19,7 @@ struct is_error_code_enum<beast::websocket::error>
|
||||
static bool const value = true;
|
||||
};
|
||||
} // system
|
||||
} // boost
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace websocket {
|
||||
namespace detail {
|
||||
|
||||
@@ -38,12 +38,12 @@ namespace websocket {
|
||||
@code
|
||||
void handle_connection(boost::asio::ip::tcp::socket& sock)
|
||||
{
|
||||
beast::flat_buffer buffer;
|
||||
beast::http::request<beast::http::string_body> req;
|
||||
beast::http::read(sock, buffer, req);
|
||||
if(beast::websocket::is_upgrade(req))
|
||||
boost::beast::flat_buffer buffer;
|
||||
boost::beast::http::request<boost::beast::http::string_body> req;
|
||||
boost::beast::http::read(sock, buffer, req);
|
||||
if(boost::beast::websocket::is_upgrade(req))
|
||||
{
|
||||
beast::websocket::stream<decltype(sock)> ws{std::move(sock)};
|
||||
boost::beast::websocket::stream<decltype(sock)> ws{std::move(sock)};
|
||||
ws.accept(req);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace system {
|
||||
template<>
|
||||
struct is_error_code_enum<beast::zlib::error>
|
||||
@@ -48,9 +49,7 @@ struct is_error_code_enum<beast::zlib::error>
|
||||
static bool const value = true;
|
||||
};
|
||||
} // system
|
||||
} // boost
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace zlib {
|
||||
namespace detail {
|
||||
|
||||
Reference in new issue
Block a user