summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/Bug_4152_Regression/Test_i.cpp
blob: 6ef8f1f9542b69cb0d0be2dd1fdbbc8808bd4366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* -*- C++ -*-  */

#include "Test_i.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdio.h"

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

CORBA::Short
Test_i::get_server_num (void)
{
  return 1;
}

void
Test_i::terminate (void)
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t) Server received terminate and going to exit\n"));
  exit (0);
}

void
Test_i::shutdown (void)
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t) Server received shutdown and going to exit\n"));
  orb_->shutdown ();
}