diff options
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/Messenger_i.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/Messenger_i.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/Messenger_i.cpp b/TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/Messenger_i.cpp new file mode 100644 index 00000000000..c54fdfffb31 --- /dev/null +++ b/TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/Messenger_i.cpp @@ -0,0 +1,18 @@ +// $Id$ +#include "Messenger_i.h" + +CORBA::Boolean +Messenger_i::send_message (const char *user_name, const char *subject, + char *& message) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Message from: %s\nSubject: %s\nMessage: %s" + "\n"), user_name, subject, message)); + const char *reply = "A reply from the server."; + message = CORBA::string_dup (reply); + if (++this->count_ == 6) + { + this->orb_->shutdown (0); + } + return true; +} |