summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Callback/Server_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Callback/Server_i.cpp')
-rw-r--r--TAO/performance-tests/Callback/Server_i.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/TAO/performance-tests/Callback/Server_i.cpp b/TAO/performance-tests/Callback/Server_i.cpp
new file mode 100644
index 00000000000..354be854fb7
--- /dev/null
+++ b/TAO/performance-tests/Callback/Server_i.cpp
@@ -0,0 +1,31 @@
+// $Id$
+
+#include "Server_i.h"
+
+#if !defined(__ACE_INLINE__)
+#include "Server_i.inl"
+#endif /* __ACE_INLINE__ */
+
+ACE_RCSID(Callback, Server_i, "$Id$")
+
+void
+Server_i::set_callback (Test::Callback_ptr callback)
+{
+ this->callback_ = Test::Callback::_duplicate (callback);
+}
+
+void
+Server_i::request (Test::TimeStamp time_stamp,
+ const Test::Payload &payload)
+{
+ if (CORBA::is_nil (this->callback_.in ()))
+ return;
+
+ this->callback_->response (time_stamp, payload);
+}
+
+void
+Server_i::shutdown (void)
+{
+ this->done_ = 1;
+}