summaryrefslogtreecommitdiff
path: root/TAO/tests/DII_AMI_Forward/test_i.cpp
blob: 9707a29653a2b2e6d7a2520ebb80e6d4497b0947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// -*- C++ -*-

#include "test_i.h"
#include "tao/debug.h"
#include "ace/OS_NS_unistd.h"

Forward_Test_i::Forward_Test_i (CORBA::ORB_ptr orb)
  : orb_ (CORBA::ORB::_duplicate (orb))
{
}

char * Forward_Test_i::do_forward (const char *text)
{
  ACE_DEBUG ((LM_DEBUG,"Server echoing test string\n"));
  return CORBA::string_dup (text);
}

void
Forward_Test_i::shutdown ()
{
  ACE_OS::sleep( 2 );
  this->orb_->shutdown (false);
}