summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/chat/Receiver_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simple/chat/Receiver_i.h')
-rw-r--r--TAO/examples/Simple/chat/Receiver_i.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/TAO/examples/Simple/chat/Receiver_i.h b/TAO/examples/Simple/chat/Receiver_i.h
new file mode 100644
index 00000000000..7c3a0767517
--- /dev/null
+++ b/TAO/examples/Simple/chat/Receiver_i.h
@@ -0,0 +1,63 @@
+/* -*- 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>
+//
+// ===========================================================
+
+#ifndef 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
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+ // Receives a message string.
+
+ virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+ // 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 */