/** * Copyright - See the COPYRIGHT that is included with this distribution. * pvxs is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. */ #define PVXS_ENABLE_EXPERT_API #include #include #include #include #include #include #include #include #include #include #include #include "evhelper.h" namespace { using namespace pvxs; // Ensure we can setup a server and client on the wildcard interface(s). // bind()ing sockets and similar. // No operations are attempted as the default interface on some test systems // may have firewall rules blocking PVA traffic in and/or out. void testwildcard(const std::string& addr1, const std::string& addr2) { testDiag("%s(%s, %s)", __func__,addr1.c_str(), addr2.c_str()); server::Config sconf; sconf.tcp_port = sconf.udp_port = 0u; // choose randomly if(!addr1.empty()) sconf.interfaces.push_back(addr1); if(!addr2.empty()) sconf.interfaces.push_back(addr2); auto serv(sconf.build()); sconf = serv.config(); testShow()<<"Server Config\n"<