diff options
author | Jose <jose@zeroc.com> | 2009-12-14 17:48:13 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-12-14 17:48:13 +0100 |
commit | 91862e81100330f3209b4272b29ca46a7bca0679 (patch) | |
tree | ca4014bd8789bc9db491e480d4791f7bdacbeebe /cpp/demo/Ice/invoke/Client.cpp | |
parent | edits to README.DEMOS (diff) | |
download | ice-91862e81100330f3209b4272b29ca46a7bca0679.tar.bz2 ice-91862e81100330f3209b4272b29ca46a7bca0679.tar.xz ice-91862e81100330f3209b4272b29ca46a7bca0679.zip |
4471 - read(std::vector<bool>) and Stream deprecate old methods.
Diffstat (limited to 'cpp/demo/Ice/invoke/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/invoke/Client.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/demo/Ice/invoke/Client.cpp b/cpp/demo/Ice/invoke/Client.cpp index c13d94b57d0..d2a6b1f4e33 100644 --- a/cpp/demo/Ice/invoke/Client.cpp +++ b/cpp/demo/Ice/invoke/Client.cpp @@ -87,7 +87,7 @@ InvokeClient::run(int argc, char* argv[]) // Ice::ByteSeq inParams, outParams; Ice::OutputStreamPtr out = Ice::createOutputStream(communicator()); - out->writeString("The streaming API works!"); + out->write("The streaming API works!"); out->finished(inParams); // @@ -110,7 +110,7 @@ InvokeClient::run(int argc, char* argv[]) arr.push_back("streaming"); arr.push_back("API"); arr.push_back("works!"); - out->writeStringSeq(arr); + out->write(arr); out->finished(inParams); // @@ -249,7 +249,8 @@ InvokeClient::run(int argc, char* argv[]) Ice::InputStreamPtr in = Ice::createInputStream(communicator(), outParams); Demo::CPtr c; in->read(c); - string str = in->readString(); + string str; + in->read(str); in->readPendingObjects(); cout << "Got string `" << str << "' and class: s.name=" << c->s.name << ", s.value=" << c->s.value << endl; |