Add client/server fromEnv() without temporary Config on caller stack
This commit is contained in:
1 parent
d6bf565ed6
commit
98edf61de8
18 files changed
+40
-22
No files matched your search
@@ -27,8 +27,7 @@ int main(int argc, char* argv[]) {
|
||||
server::SharedPV pv(server::SharedPV::buildMailbox());
|
||||
pv.open(initial);
|
||||
|
||||
server::Config::fromEnv() // Configure a server using $EPICS_PVAS_* or $EPICS_PVA_*
|
||||
.build()
|
||||
server::Server::fromEnv() // Configure a server using $EPICS_PVAS_* or $EPICS_PVA_*
|
||||
.addPV("my:pv:name", pv) // add (and name) one local PV
|
||||
.run(); // run until SIGINT
|
||||
|
||||
|
||||
Reference in new issue
Block a user