Replace uses of net::coroutine with asio::coroutine

`asio::coroutine` is an extension, which is not part of
the Networking TS, so the `net` alias is not appropriate in this case.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
Damian Jarek
2019-06-16 23:47:44 +02:00
parent a0d5baf22a
commit f10dc38ae6
17 changed files with 31 additions and 30 deletions
@@ -238,7 +238,7 @@ fail(beast::error_code ec, char const* what)
// Handles an HTTP server connection
class session
: public net::coroutine
: public boost::asio::coroutine
, public std::enable_shared_from_this<session>
{
// This is the C++11 equivalent of a generic lambda.
@@ -398,7 +398,7 @@ public:
// Accepts incoming connections and launches the sessions
class listener
: public net::coroutine
: public boost::asio::coroutine
, public std::enable_shared_from_this<listener>
{
net::io_context& ioc_;
@@ -214,7 +214,7 @@ fail(beast::error_code ec, char const* what)
// Handles an HTTP server connection
class session
: public net::coroutine
: public boost::asio::coroutine
, public std::enable_shared_from_this<session>
{
// This is the C++11 equivalent of a generic lambda.
@@ -344,7 +344,7 @@ public:
// Accepts incoming connections and launches the sessions
class listener
: public net::coroutine
: public boost::asio::coroutine
, public std::enable_shared_from_this<listener>
{
net::io_context& ioc_;
@@ -407,7 +407,7 @@ public:
private:
#include <boost/asio/yield.hpp>
void
loop(beast::error_code ec = {})
{