diff options
Diffstat (limited to 'ACE/TAO/performance-tests/Callback/Server_i.cpp')
-rw-r--r-- | ACE/TAO/performance-tests/Callback/Server_i.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ACE/TAO/performance-tests/Callback/Server_i.cpp b/ACE/TAO/performance-tests/Callback/Server_i.cpp new file mode 100644 index 00000000000..354be854fb7 --- /dev/null +++ b/ACE/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; +} |