PeerInfo in pva/server.h and pva/sharedstate.h

This commit is contained in:
Michael Davidsaver
2019-01-27 19:27:40 -08:00
parent d8f9ef2557
commit 34f53c123a
7 changed files with 34 additions and 4 deletions

View File

@@ -32,7 +32,11 @@ struct RPCOP : public pvas::Operation::Impl
const pvd::PVStructure::const_shared_pointer& value)
:Impl(pvRequest, value, pvd::BitSet().set(0))
,op(op)
{}
{
pva::ChannelRequester::shared_pointer req(op->channel->getChannelRequester());
if(req)
info = req->getPeerInfo();
}
virtual ~RPCOP() {}
virtual pva::Channel::shared_pointer getChannel() OVERRIDE FINAL