forked from boostorg/beast
make_strand is in net::
This commit is contained in:
@@ -183,7 +183,7 @@ public:
|
||||
tcp::endpoint endpoint)
|
||||
: ioc_(ioc)
|
||||
, ctx_(ctx)
|
||||
, acceptor_(beast::make_strand(ioc))
|
||||
, acceptor_(net::make_strand(ioc))
|
||||
{
|
||||
beast::error_code ec;
|
||||
|
||||
@@ -235,7 +235,7 @@ public:
|
||||
{
|
||||
// The new connection gets its own strand
|
||||
acceptor_.async_accept(
|
||||
beast::make_strand(ioc_),
|
||||
net::make_strand(ioc_),
|
||||
beast::bind_front_handler(
|
||||
&listener::on_accept,
|
||||
shared_from_this()));
|
||||
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
{
|
||||
// The new connection gets its own strand
|
||||
acceptor_.async_accept(
|
||||
beast::make_strand(ioc_),
|
||||
net::make_strand(ioc_),
|
||||
beast::bind_front_handler(
|
||||
&listener::on_accept,
|
||||
shared_from_this()));
|
||||
|
||||
@@ -62,7 +62,7 @@ run()
|
||||
{
|
||||
// The new connection gets its own strand
|
||||
acceptor_.async_accept(
|
||||
beast::make_strand(ioc_),
|
||||
net::make_strand(ioc_),
|
||||
beast::bind_front_handler(
|
||||
&listener::on_accept,
|
||||
shared_from_this()));
|
||||
@@ -94,7 +94,7 @@ on_accept(beast::error_code ec, tcp::socket socket)
|
||||
|
||||
// The new connection gets its own strand
|
||||
acceptor_.async_accept(
|
||||
beast::make_strand(ioc_),
|
||||
net::make_strand(ioc_),
|
||||
beast::bind_front_handler(
|
||||
&listener::on_accept,
|
||||
shared_from_this()));
|
||||
|
||||
@@ -249,7 +249,7 @@ public:
|
||||
net::io_context& ioc,
|
||||
tcp::endpoint endpoint)
|
||||
: ioc_(ioc)
|
||||
, acceptor_(beast::make_strand(ioc))
|
||||
, acceptor_(net::make_strand(ioc))
|
||||
{
|
||||
beast::error_code ec;
|
||||
|
||||
@@ -301,7 +301,7 @@ public:
|
||||
{
|
||||
// The new connection gets its own strand
|
||||
acceptor_.async_accept(
|
||||
beast::make_strand(ioc_),
|
||||
net::make_strand(ioc_),
|
||||
beast::bind_front_handler(
|
||||
&async_listener::on_accept,
|
||||
shared_from_this()));
|
||||
|
||||
@@ -250,7 +250,7 @@ public:
|
||||
}
|
||||
|
||||
// Make sure each session gets its own strand
|
||||
socket_ = tcp::socket(beast::make_strand(ioc_));
|
||||
socket_ = tcp::socket(net::make_strand(ioc_));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,8 +151,8 @@ public:
|
||||
net::io_context& ioc,
|
||||
tcp::endpoint endpoint)
|
||||
: ioc_(ioc)
|
||||
, acceptor_(beast::make_strand(ioc))
|
||||
, socket_(beast::make_strand(ioc))
|
||||
, acceptor_(net::make_strand(ioc))
|
||||
, socket_(net::make_strand(ioc))
|
||||
{
|
||||
beast::error_code ec;
|
||||
|
||||
@@ -224,7 +224,7 @@ public:
|
||||
}
|
||||
|
||||
// Make sure each session gets its own strand
|
||||
socket_ = tcp::socket(beast::make_strand(ioc_));
|
||||
socket_ = tcp::socket(net::make_strand(ioc_));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user