basic_stream connects are members

This commit is contained in:
Vinnie Falco committed 2019-02-19 16:27:27 -08:00
1 parent 0ad7390e94
commit c5b655c954
17 files changed
+832 -916

No files matched your search

@@ -103,8 +103,7 @@ public:
beast::get_lowest_layer(stream_).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(stream_),
beast::get_lowest_layer(stream_).async_connect(
results,
beast::bind_front_handler(
&session::on_connect,
@@ -91,8 +91,7 @@ public:
stream_.expires_after(std::chrono::seconds(30));
// Make the connection on the IP address we get from a lookup
beast::async_connect(
stream_,
stream_.async_connect(
results,
beast::bind_front_handler(
&session::on_connect,
@@ -74,7 +74,7 @@ do_session(
beast::get_lowest_layer(stream).expires_after(std::chrono::seconds(30));
// Make the connection on the IP address we get from a lookup
beast::async_connect(get_lowest_layer(stream), results, yield[ec]);
get_lowest_layer(stream).async_connect(results, yield[ec]);
if(ec)
return fail(ec, "connect");
@@ -61,7 +61,7 @@ do_session(
stream.expires_after(std::chrono::seconds(30));
// Make the connection on the IP address we get from a lookup
beast::async_connect(stream, results, yield[ec]);
stream.async_connect(results, yield[ec]);
if(ec)
return fail(ec, "connect");
+1 -2
View File
@@ -223,8 +223,7 @@ public:
stream_.expires_after(std::chrono::seconds(10));
// Make the connection on the IP address we get from a lookup
beast::async_connect(
stream_,
stream_.async_connect(
results,
beast::bind_front_handler(
&worker::on_connect,
@@ -80,7 +80,7 @@ int main(int argc, char** argv)
auto const results = resolver.resolve(host, port);
// Make the connection on the IP address we get from a lookup
beast::connect(beast::get_lowest_layer(stream), results);
beast::get_lowest_layer(stream).connect(results);
// Perform the SSL handshake
stream.handshake(ssl::stream_base::client);
@@ -60,7 +60,7 @@ int main(int argc, char** argv)
auto const results = resolver.resolve(host, port);
// Make the connection on the IP address we get from a lookup
beast::connect(stream, results);
stream.connect(results);
// Set up an HTTP GET request message
http::request<http::string_body> req{http::verb::get, target, version};