51 static shared_pointer
create(
const std::string & serviceName,
52 epics::pvData::PVStructure::shared_pointer
const & pvRequest = epics::pvData::PVStructure::shared_pointer());
54 RPCClient(
const std::string & serviceName,
55 epics::pvData::PVStructure::shared_pointer
const & pvRequest,
56 const ChannelProvider::shared_pointer& provider = ChannelProvider::shared_pointer(),
57 const std::string& address = std::string());
76 bool connect(
double timeout = RPCCLIENT_DEFAULT_TIMEOUT);
102 epics::pvData::PVStructure::shared_pointer
request(
103 epics::pvData::PVStructure::shared_pointer
const & pvArgument,
104 double timeout = RPCCLIENT_DEFAULT_TIMEOUT,
105 bool lastRequest =
false);
115 epics::pvData::PVStructure::shared_pointer
const & pvArgument,
116 bool lastRequest =
false);
124 epics::pvData::PVStructure::shared_pointer
waitResponse(
double timeout = RPCCLIENT_DEFAULT_TIMEOUT);
128 const std::string m_serviceName;
129 ChannelProvider::shared_pointer m_provider;
130 Channel::shared_pointer m_channel;
131 ChannelRPC::shared_pointer m_rpc;
132 const epics::pvData::PVStructure::shared_pointer m_pvRequest;
135 std::tr1::shared_ptr<RPCRequester> m_rpc_requester;
epics::pvData::PVStructure::shared_pointer request(epics::pvData::PVStructure::shared_pointer const &pvArgument, double timeout=5.0, bool lastRequest=false)
Sends a request and wait for the response or until timeout occurs.