Mercurial > hg > piper-cpp
comparison vamp-client/CapnpRRClient.h @ 101:8c449824e08d
Parameterise process name
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 14 Oct 2016 16:22:32 +0100 |
parents | bbb99f94e225 |
children | d74dfc11927c |
comparison
equal
deleted
inserted
replaced
100:bbb99f94e225 | 101:8c449824e08d |
---|---|
283 checkResponseType(const piper::RpcResponse::Reader &r, | 283 checkResponseType(const piper::RpcResponse::Reader &r, |
284 piper::RpcResponse::Response::Which type, | 284 piper::RpcResponse::Response::Which type, |
285 ReqId id) { | 285 ReqId id) { |
286 | 286 |
287 if (r.getResponse().which() != type) { | 287 if (r.getResponse().which() != type) { |
288 std::cerr << "checkResponseType: wrong response type (received " | |
289 << r.getResponse().which() << ", expected " << type << ")" | |
290 << std::endl; | |
288 throw std::runtime_error("Wrong response type"); | 291 throw std::runtime_error("Wrong response type"); |
289 } | 292 } |
290 if (ReqId(r.getId().getNumber()) != id) { | 293 if (ReqId(r.getId().getNumber()) != id) { |
294 std::cerr << "checkResponseType: wrong response id (received " | |
295 << r.getId().getNumber() << ", expected " << id << ")" | |
296 << std::endl; | |
291 throw std::runtime_error("Wrong response id"); | 297 throw std::runtime_error("Wrong response id"); |
292 } | 298 } |
293 } | 299 } |
294 | 300 |
295 kj::Array<capnp::word> | 301 kj::Array<capnp::word> |