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:
Michael Davidsaver
2021-04-17 16:22:20 -07:00
parent 55f8b91ede
commit 5d3a21f030
6 changed files with 88 additions and 33 deletions
+3 -2
View File
@@ -642,10 +642,11 @@ std::shared_ptr<Subscription> MonitorBuilder::exec()
});
auto name(std::move(_name));
context->tcp_loop.dispatch([op, context, name]() {
auto server(std::move(_server));
context->tcp_loop.dispatch([op, context, name, server]() {
// on worker
op->chan = Channel::build(context, name);
op->chan = Channel::build(context, name, server);
op->chan->pending.push_back(op);
op->chan->createOperations();