- int call1(proc_id_t proc, milliseconds to, string & rep, marshall & req);
-
- template<class R>
- inline int call_m(proc_id_t proc, milliseconds to, R & r, marshall && req) {
- string rep;
- int intret = call1(proc, to, rep, req);
- if (intret < 0) return intret;
- unmarshall u(rep, true, r);
- if (u.okdone() != true) {
- LOG << "rpcc::call_m: failed to unmarshall the reply. You are probably "
- << "calling RPC 0x" << std::hex << proc << " with the wrong return type.";
- VERIFY(0);
- return rpc_protocol::unmarshall_reply_failure;
- }
- return intret;
- }
+ int call_marshalled(const rpc_protocol::proc_t & proc, milliseconds to, string & rep, const marshall & req);