summaryrefslogtreecommitdiff
path: root/TAO/tao/Pluggable_Messaging_Utils.h
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-03-16 00:22:33 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-03-16 00:22:33 +0000
commit650c8f2d9f12a9a16268a7054b141c38a56edde2 (patch)
tree7fd033c8cfed95ba04f67d4f0e4d7c5001ffa1b4 /TAO/tao/Pluggable_Messaging_Utils.h
parentf3bf9025fb0d1d2273bcfc893fcabe9e7b4d6bb2 (diff)
downloadATCD-650c8f2d9f12a9a16268a7054b141c38a56edde2.tar.gz
ChangeLogTag: Wed Mar 15 17:34:47 2000 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Pluggable_Messaging_Utils.h')
-rw-r--r--TAO/tao/Pluggable_Messaging_Utils.h105
1 files changed, 105 insertions, 0 deletions
diff --git a/TAO/tao/Pluggable_Messaging_Utils.h b/TAO/tao/Pluggable_Messaging_Utils.h
new file mode 100644
index 00000000000..a01bce36619
--- /dev/null
+++ b/TAO/tao/Pluggable_Messaging_Utils.h
@@ -0,0 +1,105 @@
+// -*- C++ -*-
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// Pluggable_Messaging_Utils.h
+//
+// = DESCRIPTION
+// Utility classes for the TAO pluggable messaging framework.
+//
+// = AUTHOR
+// Balachandran Natarajan <bala@cs.wustl.edu>
+//
+// ============================================================================
+#ifndef TAO_PLUGGABLE_MESSAGING_UTILS_H
+#define TAO_PLUGGABLE_MESSAGING_UTILS_H
+#include "tao/IOPC.h"
+
+class TAO_Export TAO_Pluggable_Connector_Params
+{
+ // = TITLE
+ // TAO_Pluggable_Connector_Params
+ //
+ // = DESCRIPTION
+ // This represents a set of data that would be received by the
+ // connector from the acceptor.
+public:
+ TAO_Pluggable_Connector_Params (void);
+ // Ctor
+
+ IOP::ServiceContextList svc_ctx_;
+ // The IOP service context list
+
+ CORBA::ULong request_id_;
+ // The request id for which the reply we (connector) has received
+
+ CORBA::ULong reply_status_;
+ // The reply status
+};
+
+typedef enum HeaderType
+{
+ // = TITLE
+ // = DESCRIPTION
+ //
+ TAO_PLUGGABLE_MESSAGE_REQUEST_HEADER = 0,
+ TAO_PLUGGABLE_MESSAGE_LOCATE_REQUEST_HEADER
+}TAO_Pluggable_Header_Type;
+
+
+typedef enum MessageType
+{
+ // = DESCRIPTION
+ // Provide an external interface for the users of this pluggable
+ // messaging framework to denote existing message types. This has
+ // an inspiration from GIOP. So if anybody wants to add more message
+ // types you are welcome but please do not change the numbering
+ // scheme as this would affect GIOP.
+
+ TAO_PLUGGABLE_MESSAGE_REQUEST = 0, // sent by client.
+ TAO_PLUGGABLE_MESSAGE_REPLY = 1, // by server.
+ TAO_PLUGGABLE_MESSAGE_CANCELREQUEST = 2, // by client.
+ TAO_PLUGGABLE_MESSAGE_LOCATEREQUEST = 3, // by client.
+ TAO_PLUGGABLE_MESSAGE_LOCATEREPLY = 4,
+ TAO_PLUGGABLE_MESSAGE_CLOSECONNECTION = 5,
+ TAO_PLUGGABLE_MESSAGE_MESSAGERROR = 6,
+ TAO_PLUGGABLE_MESSAGE_FRAGMENT = 7
+}TAO_Pluggable_Message_Type;
+
+typedef enum Exception_Types
+{
+ // = DESCRIPTION
+ // Provide an external interface for the users of this pluggable
+ // messaging framework to denote existing Exception types. This has
+ // an inspiration from GIOP. So if anybody wants to add more message
+ // types you are welcome but please do not change the numbering
+ // scheme as this would affect GIOP.
+ TAO_PLUGGABLE_MESSAGE_NO_EXCEPTION = 0,
+ // Request completed successfully
+
+ TAO_PLUGGABLE_MESSAGE_USER_EXCEPTION,
+ // Request terminated with user exception
+
+ TAO_PLUGGABLE_MESSAGE_SYSTEM_EXCEPTION,
+ // Request terminated with system exception
+
+ TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD,
+ // Reply is a location forward type
+
+ TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM,
+ // PLUGGABLE_MESSAGE 1.2, Reply is a location forward perm type..
+
+ TAO_PLUGABLE_MESSAGE_NEEDS_ADDRESSING_MODE
+ // GIOP1.2,
+}TAO_Pluggable_Message_Exception_Type;
+
+#if defined (__ACE_INLINE__)
+#include "tao/Pluggable_Messaging_Utils.i"
+#endif /* __ACE_INLINE__ */
+
+#endif /*_TAO_PLUGGABLE_MESSAGING_UTILS_H_ */