summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Simple/client_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/NestedUpcall/Simple/client_i.cpp')
-rw-r--r--TAO/tests/NestedUpcall/Simple/client_i.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/TAO/tests/NestedUpcall/Simple/client_i.cpp b/TAO/tests/NestedUpcall/Simple/client_i.cpp
new file mode 100644
index 00000000000..7525ef2160c
--- /dev/null
+++ b/TAO/tests/NestedUpcall/Simple/client_i.cpp
@@ -0,0 +1,26 @@
+// $Id$
+
+#include "client_i.h"
+
+client_i::client_i (int quiet,
+ server_ptr s)
+ : quiet_ (quiet),
+ server_ (server::_duplicate (s))
+{
+}
+
+void
+client_i::ping (CORBA::UShort time_to_live)
+{
+ if (!this->quiet_)
+ ACE_DEBUG ((LM_DEBUG,
+ "(%t) client_i::ping -> time to live = %d\n",
+ time_to_live));
+
+ --time_to_live;
+
+ if (time_to_live > 0)
+ {
+ this->server_->ping (time_to_live);
+ }
+}