#include #include #include #include #include auto Coroutine() -> boost::asio::awaitable { std::println("Connecting client..."); try { auto client = co_await larra::xmpp::client::CreateClient>( larra::xmpp::EncryptionUserAccount{{"sha512sum", "localhost"}, "12345"}, {.useTls = larra::xmpp::client::Options::kNever}); } catch(const std::exception& err) { std::println("Err: {}", err.what()); co_return; } std::println("Done!"); } auto main() -> int { boost::asio::io_context io_context; boost::asio::co_spawn(io_context, Coroutine(), boost::asio::detached); io_context.run(); }