forked from boostorg/beast
basic_stream connects are members
This commit is contained in:
1 parent
0ad7390e94
commit
c5b655c954
17 files changed
+832
-916
No files matched your search
@@ -92,8 +92,7 @@ public:
|
||||
beast::get_lowest_layer(ws_).expires_after(std::chrono::seconds(30));
|
||||
|
||||
// Make the connection on the IP address we get from a lookup
|
||||
beast::async_connect(
|
||||
beast::get_lowest_layer(ws_),
|
||||
beast::get_lowest_layer(ws_).async_connect(
|
||||
results,
|
||||
beast::bind_front_handler(
|
||||
&session::on_connect,
|
||||
|
||||
@@ -86,8 +86,7 @@ public:
|
||||
beast::get_lowest_layer(ws_).expires_after(std::chrono::seconds(30));
|
||||
|
||||
// Make the connection on the IP address we get from a lookup
|
||||
beast::async_connect(
|
||||
beast::get_lowest_layer(ws_),
|
||||
beast::get_lowest_layer(ws_).async_connect(
|
||||
results,
|
||||
beast::bind_front_handler(
|
||||
&session::on_connect,
|
||||
|
||||
@@ -67,7 +67,7 @@ do_session(
|
||||
beast::get_lowest_layer(ws).expires_after(std::chrono::seconds(30));
|
||||
|
||||
// Make the connection on the IP address we get from a lookup
|
||||
beast::async_connect(beast::get_lowest_layer(ws), results, yield[ec]);
|
||||
beast::get_lowest_layer(ws).async_connect(results, yield[ec]);
|
||||
if(ec)
|
||||
return fail(ec, "connect");
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ do_session(
|
||||
beast::get_lowest_layer(ws).expires_after(std::chrono::seconds(30));
|
||||
|
||||
// Make the connection on the IP address we get from a lookup
|
||||
beast::async_connect(ws.next_layer(), results, yield[ec]);
|
||||
beast::get_lowest_layer(ws).async_connect(results, yield[ec]);
|
||||
if(ec)
|
||||
return fail(ec, "connect");
|
||||
|
||||
|
||||
Reference in new issue
Block a user