blob: 40499f0f3c16731960e5e4794e12e8225ee3b177 (
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
57
|
/* -*- C++ -*- */
// $Id$
// ===========================================================
//
// = LIBRARY
// TAO/tests/Simple/chat
//
// = FILENAME
// Receiver_i.h
//
// = DESCRIPTION
// Defines the implementation header for the Receiver interface.
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// ===========================================================
#if !defined (RECEIVER_I_H)
#define RECEIVER_I_H
#include "ReceiverS.h"
class Receiver_i : public POA_Receiver
{
// = TITLE
// Receiver object implementation
//
// = DESCRIPTION
// This class has methods that are called by the chat server.
public:
// = Initialization and termination methods.
Receiver_i (void);
// Constructor.
~Receiver_i (void);
// Destructor.
virtual void message (const char *msg,
CORBA::Environment &_tao_environment);
// Receives a message string.
virtual void shutdown (CORBA::Environment &_tao_environment);
// Called when the chat server is going away. The client
// implementation should shutdown the chat client in response to
// this.
void orb (CORBA::ORB_ptr o);
// Set the ORB pointer.
private:
CORBA::ORB_var orb_;
// ORB pointer.
};
#endif /* RECEIVER_I_H */
|