Add client/server fromEnv() without temporary Config on caller stack

This commit is contained in:
Michael Davidsaver
2021-08-05 09:57:00 -07:00
parent d6bf565ed6
commit 98edf61de8
18 changed files with 40 additions and 22 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ int main(int argc, char* argv[]) {
logger_config_env();
// Configure client using $EPICS_PVA_*
client::Context ctxt(client::Config::fromEnv().build());
auto ctxt(client::Context::fromEnv());
// fetch PV "some:pv:name" and wait up to 5 seconds for a reply.
// (throws an exception on error, including timeout)