summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/Messenger_i.cpp
blob: 769eadd5a2df266548dcf0480c21239cee6b0133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// $Id$
#include "Messenger_i.h"

CORBA::Boolean
Messenger_i::send_message (const char *user_name, const char *subject,
                           char *& message)
{
  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;
}