update Config

This commit is contained in:
Michael Davidsaver
2020-02-21 09:45:03 -08:00
parent 024185ef81
commit cfa18525cf
4 changed files with 85 additions and 45 deletions
+14
View File
@@ -23,6 +23,7 @@
#include <epicsString.h>
#include <pvxs/server.h>
#include <pvxs/client.h>
#include <pvxs/log.h>
#include "evhelper.h"
#include "serverconn.h"
@@ -139,6 +140,19 @@ const Config& Server::config() const
return pvt->effective;
}
client::Config Server::clientConfig() const
{
if(!pvt)
throw std::logic_error("NULL Server");
client::Config ret;
ret.udp_port = pvt->effective.udp_port;
ret.addressList = pvt->effective.interfaces;
ret.autoAddrList = false;
return ret;
}
Server& Server::addPV(const std::string& name, const SharedPV& pv)
{
if(!pvt)