net is a namespace alias for boost::asio:

The namespace alias beast::net replaces boost::asio in all code
and documentation.
This commit is contained in:
Vinnie Falco
2018-12-02 17:51:43 -08:00
parent a5739c3ea0
commit f995fd41a3
185 changed files with 2486 additions and 2392 deletions
+7 -7
View File
@@ -21,7 +21,7 @@ namespace boost {
namespace beast {
// VFALCO No idea why boost::system::errc::message_size fails
// to compile, so we use boost::asio::error::eof instead.
// to compile, so we use net::error::eof instead.
//
class buffer_test : public beast::unit_test::suite
{
@@ -35,17 +35,17 @@ public:
DynamicBuffer b(32);
detail::dynamic_buffer_prepare(b, 20, ec,
//boost::system::errc::message_size);
boost::asio::error::eof);
net::error::eof);
BEAST_EXPECTS(! ec, ec.message());
b.commit(20);
auto const result =
detail::dynamic_buffer_prepare(b, 20, ec,
//boost::system::errc::message_size);
boost::asio::error::eof);
net::error::eof);
BEAST_EXPECT(result == boost::none);
BEAST_EXPECTS(
//ec == boost::system::errc::message_size,
ec == boost::asio::error::eof, ec.message());
ec == net::error::eof, ec.message());
#else
fail("exceptions disabled", __FILE__, __LINE__);
#endif
@@ -59,17 +59,17 @@ public:
DynamicBuffer b(32);
detail::dynamic_buffer_prepare_noexcept(b, 20, ec,
//boost::system::errc::message_size);
boost::asio::error::eof);
net::error::eof);
BEAST_EXPECTS(! ec, ec.message());
b.commit(20);
auto const result =
detail::dynamic_buffer_prepare_noexcept(b, 20, ec,
//boost::system::errc::message_size);
boost::asio::error::eof);
net::error::eof);
BEAST_EXPECT(result == boost::none);
BEAST_EXPECTS(
//ec == boost::system::errc::message_size,
ec == boost::asio::error::eof, ec.message());
ec == net::error::eof, ec.message());
}
void