summaryrefslogtreecommitdiff
path: root/TAO/DevGuideExamples/BiDirectionalGIOP/callback_i.cpp
blob: b355371b4923d745d8ec24a1cabc12495ddee69e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "bidir_giop_pch.h"

#include "callback_i.h"
#include <iostream>

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

void Callback_i::shutdown ()
{
  std::cout << "Performing clean shutdown." << std::endl;
  CORBA::Boolean wait = false;
  orb_->shutdown(wait);
}

void Callback_i::callback_method ()
{
  std::cout << "Callback method called." << std::endl;
}