...
This commit is contained in:
parent
85259fc6ad
commit
3682ccdda6
@ -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 "
|
"endpoints server will be listening for. For 'local' endpoint the '@' symbol at the beginning of the path "
|
||||||
"means "
|
"means "
|
||||||
"abstract namespace socket.",
|
"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]");
|
options.positional_help("[endpoint0] [enpoint1] ... [endpointN]");
|
||||||
@ -128,8 +128,13 @@ int main(int argc, char* argv[])
|
|||||||
asio::post(pool, [&ctx]() { ctx.run(); });
|
asio::post(pool, [&ctx]() { ctx.run(); });
|
||||||
|
|
||||||
pool.join();
|
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 (...) {
|
} catch (...) {
|
||||||
|
std::cerr << "Unhandled exceptions!\n";
|
||||||
|
return 255;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user