This commit is contained in:
Timur A. Fatkhullin 2025-10-30 11:58:11 +03:00
parent 85259fc6ad
commit 3682ccdda6

View File

@ -32,7 +32,7 @@ int main(int argc, char* argv[])
"endpoints server will be listening for. For 'local' endpoint the '@' symbol at the beginning of the path "
"means "
"abstract namespace socket.",
cxxopts::value<std::vector<std::string>>()->default_value("local://stream/@BM700_SERVER"));
cxxopts::value<std::vector<std::string>>()->default_value("local://stream/@FM700_SERVER"));
options.positional_help("[endpoint0] [enpoint1] ... [endpointN]");
@ -128,8 +128,13 @@ int main(int argc, char* argv[])
asio::post(pool, [&ctx]() { ctx.run(); });
pool.join();
ctx.run();
// ctx.run();
} catch (const std::system_error& ex) {
std::cerr << "An error occured: " << ex.code().message() << "\n";
return ex.code().value();
} catch (...) {
std::cerr << "Unhandled exceptions!\n";
return 255;
}
}