Mercurial > hg > piper-cpp
comparison vamp-client/client.cpp @ 96:215c9fb6b7a4
Rename to CapnpRRClient (request-response, as opposed to individual RPC calls)
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 13 Oct 2016 17:00:06 +0100 |
parents | b6ac26b72b59 |
children | 427c4c725085 |
comparison
equal
deleted
inserted
replaced
95:b6ac26b72b59 | 96:215c9fb6b7a4 |
---|---|
1 | 1 |
2 #include "ProcessQtTransport.h" | 2 #include "ProcessQtTransport.h" |
3 #include "CapnpClient.h" | 3 #include "CapnpRRClient.h" |
4 | 4 |
5 #include <stdexcept> | 5 #include <stdexcept> |
6 | 6 |
7 using std::cerr; | 7 using std::cerr; |
8 using std::endl; | 8 using std::endl; |
9 | 9 |
10 int main(int, char **) | 10 int main(int, char **) |
11 { | 11 { |
12 piper::vampclient::ProcessQtTransport transport("../bin/piper-vamp-server"); | 12 piper::vampclient::ProcessQtTransport transport("../bin/piper-vamp-server"); |
13 piper::vampclient::CapnpClient client(&transport); | 13 piper::vampclient::CapnpRRClient client(&transport); |
14 | 14 |
15 Vamp::HostExt::ListResponse lr = client.listPluginData(); | 15 Vamp::HostExt::ListResponse lr = client.listPluginData(); |
16 cerr << "Plugins available:" << endl; | 16 cerr << "Plugins available:" << endl; |
17 int i = 1; | 17 int i = 1; |
18 for (const auto &p: lr.available) { | 18 for (const auto &p: lr.available) { |
56 } | 56 } |
57 | 57 |
58 (void)plugin->getRemainingFeatures(); | 58 (void)plugin->getRemainingFeatures(); |
59 | 59 |
60 delete plugin; | 60 delete plugin; |
61 //!!! -- and also implement reset(), which will need to reconstruct internally | |
62 } | 61 } |
63 | 62 |