summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-05 02:35:27 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-05 02:35:27 +0000
commit21d6da9ae8b7f87bd35be4c55122545c2a6c0987 (patch)
treec12260002ff01312c17717f2ea569e1ab9684eea /cpp/demo/Ice/hello/Client.cpp
parentfix for STLport (diff)
downloadice-21d6da9ae8b7f87bd35be4c55122545c2a6c0987.tar.bz2
ice-21d6da9ae8b7f87bd35be4c55122545c2a6c0987.tar.xz
ice-21d6da9ae8b7f87bd35be4c55122545c2a6c0987.zip
batch-mode
Diffstat (limited to 'cpp/demo/Ice/hello/Client.cpp')
-rw-r--r--cpp/demo/Ice/hello/Client.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index b25d03d646f..58804cfe2d7 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -28,15 +28,18 @@ run(int argc, char* argv[], Ice::CommunicatorPtr communicator)
}
HelloPrx timeout = HelloPrx::uncheckedCast(hello->_timeout(2000));
- HelloPrx secure = HelloPrx::uncheckedCast(hello->_secure());
HelloPrx oneway = HelloPrx::uncheckedCast(hello->_oneway());
+ HelloPrx batchOneway = HelloPrx::uncheckedCast(hello->_batchOneway());
HelloPrx datagram = HelloPrx::uncheckedCast(hello->_datagram());
+ HelloPrx batchDatagram = HelloPrx::uncheckedCast(hello->_batchDatagram());
cout << "h: hello" << endl;
cout << "t: hello w/ 2s timeout" << endl;
cout << "o: hello as oneway" << endl;
- cout << "e: hello w/ secure connection" << endl;
+ cout << "O: hello as batch oneway" << endl;
cout << "d: hello as datagram" << endl;
+ cout << "D: hello as batch datagram" << endl;
+ cout << "f: flush batch request" << endl;
cout << "s: shutdown" << endl;
cout << "x: exit" << endl;
@@ -57,14 +60,23 @@ run(int argc, char* argv[], Ice::CommunicatorPtr communicator)
{
oneway->hello();
}
- else if (c == 'e')
+ else if (c == 'O')
{
- secure->hello();
+ batchOneway->hello();
}
else if (c == 'd')
{
datagram->hello();
}
+ else if (c == 'D')
+ {
+ batchDatagram->hello();
+ }
+ else if (c == 'f')
+ {
+ batchOneway->_flush();
+ batchDatagram->_flush();
+ }
else if (c == 's')
{
hello->shutdown();