summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/chat/Receiver_i.cpp
blob: 4ceb9e79018ac364eede74b30bc1a768ce8f29f8 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// $Id$

// ===========================================================
//
// = LIBRARY
//    TAO/tests/Simple/chat
//
// = FILENAME
//    Receiver_i.cpp
//
// = DESCRIPTION
//    Implements the Receiver_i class, which is used by the chat client.
//
// = AUTHOR
//    Pradeep Gore <pradeep@cs.wustl.edu>
//
// ===========================================================

#include "Receiver_i.h"

Receiver_i::Receiver_i (void)
  : orb_ (0)
{
}

Receiver_i::~Receiver_i (void)
{
}

void
Receiver_i::message (const char *msg,
                     CORBA::Environment &)
  ACE_THROW_SPEC ((
      CORBA::SystemException
    ))
{
  ACE_DEBUG ((LM_DEBUG,
	      ": %s\n",
	      msg));
}

void
Receiver_i::shutdown (CORBA::Environment &)
 ACE_THROW_SPEC ((
      CORBA::SystemException
    ))
{
  // Instruct the ORB to shutdown.
  this->orb_->shutdown ();
}

void
Receiver_i::orb (CORBA::ORB_ptr o)
{
  this->orb_ = CORBA::ORB::_duplicate (o);
}