client Channel search bypass
Bypass the broadcast search phase and directly connect to a specific server and issue CMD_CREATE_CHANNEL. Note, due to pvAccessCPP buggyness, this can only be relied upon to connect with the unadvertised magic 'server' PV.
This commit is contained in:
@@ -39,6 +39,16 @@ Connection::~Connection()
|
||||
cleanup();
|
||||
}
|
||||
|
||||
std::shared_ptr<Connection> Connection::build(const std::shared_ptr<ContextImpl>& context,
|
||||
const SockAddr& serv)
|
||||
{
|
||||
std::shared_ptr<Connection> ret;
|
||||
auto it = context->connByAddr.find(serv);
|
||||
if(it==context->connByAddr.end() || !(ret = it->second.lock())) {
|
||||
context->connByAddr[serv] = ret = std::make_shared<Connection>(context, serv);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Connection::createChannels()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user