[EXAMPLES/ASIO] Renames Kconfig parameter and clarify

On ip::tcp::resolver ASIO uses service to identify the type of
connection and get the port number. LWIP can't resolve this way.


* Original commit: espressif/esp-idf@232b0eda5f
This commit is contained in:
Euripedes Rocha authored and gabsuren committed 2022-06-22 14:18:18 +04:00
1 parent e3c4391246
commit 952e5df477
2 files changed
+5 -5

No files matched your search

@@ -378,7 +378,7 @@ extern "C" void app_main(void)
asio::io_context io_context;
Http::Request request(Http::Method::GET, "www.httpbin.org", "80", "/get");
Socks::async_connect(io_context, CONFIG_EXAMPLE_PROXY_ADDRESS, CONFIG_EXAMPLE_PROXY_PORT, request.host(), request.service_port(),
Socks::async_connect(io_context, CONFIG_EXAMPLE_PROXY_ADDRESS, CONFIG_EXAMPLE_PROXY_SERVICE, request.host(), request.service_port(),
[&request](std::shared_ptr<Connection> connection) {
// Now we create a HTTP::Session and inject the necessary connection.
std::make_shared<Http::Session>(connection)->send_request(request, [](std::shared_ptr<Http::Session> session, Http::Response response) {