Searched refs:io_context (Results 1 – 6 of 6) sorted by relevance
/hal_espressif-3.6.0/examples/protocols/asio/asio_chat/main/ |
D | asio_chat.cpp | 47 asio::io_context io_context; in start_client() local 50 tcp::resolver resolver(io_context); in start_client() 52 chat_client c(io_context, endpoints); in start_client() 56 std::thread t([&io_context]() { try { in start_client() 57 io_context.run(); in start_client() 95 asio::io_context io_context; in app_main() local 96 …chat_server server(io_context, tcp::endpoint(tcp::v4(), std::atoi(CONFIG_EXAMPLE_CHAT_SERVER_BIND_… in app_main() 97 std::thread t = std::thread([&io_context]() { // Chat server starting here in app_main() 99 io_context.run(); in app_main()
|
D | client.hpp | 23 chat_client(asio::io_context& io_context, in chat_client() argument 25 : io_context_(io_context), in chat_client() 26 socket_(io_context) in chat_client() 120 asio::io_context& io_context_;
|
D | server.hpp | 175 chat_server(asio::io_context& io_context, in chat_server() argument 177 : acceptor_(io_context, endpoint) in chat_server()
|
/hal_espressif-3.6.0/examples/protocols/asio/ssl_client_server/main/ |
D | asio_ssl_main.cpp | 40 Client(asio::io_context &io_context, in Client() argument 43 : socket_(io_context, context) in Client() 172 Server(asio::io_context &io_context, unsigned short port) in Server() argument 173 : acceptor_(io_context, tcp::endpoint(tcp::v4(), port)), in Server() 213 asio::io_context io_context; in ssl_server_thread() local 215 Server s(io_context, 443); in ssl_server_thread() 217 io_context.run(); in ssl_server_thread() 222 asio::io_context io_context; in ssl_client_thread() local 224 tcp::resolver resolver(io_context); in ssl_client_thread() 234 Client c(io_context, ctx, endpoints); in ssl_client_thread() [all …]
|
/hal_espressif-3.6.0/examples/protocols/asio/udp_echo_server/main/ |
D | udp_echo_server.cpp | 26 server(asio::io_context& io_context, short port) in server() argument 27 : socket_(io_context, udp::endpoint(udp::v4(), port)) in server() 83 asio::io_context io_context; in app_main() local 85 server s(io_context, std::atoi(CONFIG_EXAMPLE_PORT)); in app_main() 89 io_context.run(); in app_main()
|
/hal_espressif-3.6.0/examples/protocols/asio/tcp_echo_server/main/ |
D | echo_server.cpp | 61 server(asio::io_context& io_context, short port) in server() argument 62 : acceptor_(io_context, tcp::endpoint(tcp::v4(), port)) in server() 101 asio::io_context io_context; in app_main() local 103 server s(io_context, std::atoi(CONFIG_EXAMPLE_PORT)); in app_main() 107 io_context.run(); in app_main()
|