summaryrefslogtreecommitdiff
path: root/TAO/tests/DII_AMI_Forward/test_i.cpp
blob: ca593687f776a68a5db6ccb7b9762a78d2db93c9 (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 (0);
}