summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Volz <andreas@optolix.mittelerde>2008-09-10 00:14:38 +0200
committerAndreas Volz <andreas@optolix.mittelerde>2008-09-10 00:14:38 +0200
commitf51dc1bf4c52468f5c15a44955459acb29252da9 (patch)
tree69f21af57a79d51ace2fa7c16748050d5e013c9a /examples
parentbbca1b0acc8e394f42c01e62474f4d007c036b14 (diff)
downloaddbus-c++-f51dc1bf4c52468f5c15a44955459acb29252da9.tar.gz
-support noreply messages in the library
-> not yet in the XML file
Diffstat (limited to 'examples')
-rw-r--r--examples/echo/echo-client.cpp2
-rw-r--r--examples/echo/echo-server.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/echo/echo-client.cpp b/examples/echo/echo-client.cpp
index 093595f..03433b7 100644
--- a/examples/echo/echo-client.cpp
+++ b/examples/echo/echo-client.cpp
@@ -42,7 +42,9 @@ void *greeter_thread(void *arg)
for (int i = 0; i < 30 && spin; ++i)
{
+ cout << "+Hello" << endl;
cout << client.Hello(idstr) << endl;
+ cout << "-Hello" << endl;
}
cout << idstr << " done " << endl;
diff --git a/examples/echo/echo-server.cpp b/examples/echo/echo-server.cpp
index 188f0d5..1d1cb07 100644
--- a/examples/echo/echo-server.cpp
+++ b/examples/echo/echo-server.cpp
@@ -24,7 +24,7 @@ int32_t EchoServer::Random()
std::string EchoServer::Hello(const std::string &name)
{
- sleep (10);
+ sleep (5);
return "Hello " + name + "!";
}