diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-05-23 11:59:44 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-05-23 11:59:44 +0200 |
commit | d81701ca8182942b7936f9fd84a019b695e9c890 (patch) | |
tree | dc036c9d701fbbe1afad67782bd78572c0f61974 /cpp/demo/Ice/hello/Client.cpp | |
parent | Fixed bug ICE-5543: stringToIdentity bug with escaped escapes (diff) | |
download | ice-d81701ca8182942b7936f9fd84a019b695e9c890.tar.bz2 ice-d81701ca8182942b7936f9fd84a019b695e9c890.tar.xz ice-d81701ca8182942b7936f9fd84a019b695e9c890.zip |
Added support for invocation timeouts and ACM heartbeats
Diffstat (limited to 'cpp/demo/Ice/hello/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/hello/Client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp index 1d659704e28..9b870872b61 100644 --- a/cpp/demo/Ice/hello/Client.cpp +++ b/cpp/demo/Ice/hello/Client.cpp @@ -52,7 +52,7 @@ HelloClient::run(int argc, char* argv[]) } HelloPrx twoway = HelloPrx::checkedCast( - communicator()->propertyToProxy("Hello.Proxy")->ice_twoway()->ice_timeout(-1)->ice_secure(false)); + communicator()->propertyToProxy("Hello.Proxy")->ice_twoway()->ice_secure(false)); if(!twoway) { cerr << argv[0] << ": invalid proxy" << endl; @@ -125,9 +125,9 @@ HelloClient::run(int argc, char* argv[]) timeout = -1; } - twoway = twoway->ice_timeout(timeout); - oneway = oneway->ice_timeout(timeout); - batchOneway = batchOneway->ice_timeout(timeout); + twoway = twoway->ice_invocationTimeout(timeout); + oneway = oneway->ice_invocationTimeout(timeout); + batchOneway = batchOneway->ice_invocationTimeout(timeout); if(timeout == -1) { |