summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_State.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-03-28 22:43:20 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-03-28 22:43:20 +0000
commit7c5a7915dcb32fa6b33b0d9fcb0704a94c4c2fba (patch)
tree18d9f03ec6062b921772aa343ae57048c5d111f6 /TAO/tao/GIOP_Message_State.h
parentde2d6ca1639bfcd654b70309975e921e1e681cad (diff)
downloadATCD-7c5a7915dcb32fa6b33b0d9fcb0704a94c4c2fba.tar.gz
ChangeLogTag:Tue Mar 28 14:40:54 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/GIOP_Message_State.h')
-rw-r--r--TAO/tao/GIOP_Message_State.h44
1 files changed, 27 insertions, 17 deletions
diff --git a/TAO/tao/GIOP_Message_State.h b/TAO/tao/GIOP_Message_State.h
index cce2bbf6962..eb5de7d3751 100644
--- a/TAO/tao/GIOP_Message_State.h
+++ b/TAO/tao/GIOP_Message_State.h
@@ -15,7 +15,7 @@
// = AUTHOR
// Chris Cleeland <cleeland@cs.wustl.edu>
// Carlos O' Ryan <coryan@uci.edu>
-//
+//
// ============================================================================
#ifndef TAO_GIOP_MESSAGE_STATE_H
@@ -24,6 +24,8 @@
#include "tao/Pluggable_Messaging.h"
+// @@ Bala more missing #pragma once
+
class TAO_Export TAO_GIOP_Version
{
// = TITLE
@@ -56,15 +58,23 @@ public:
// Equality operator
};
-class TAO_Export TAO_GIOP_Message_State: public TAO_Message_State_Factory
+// @@ Bala: do you see how these names are inconsistent! It is a
+// @@ message state factory for GIOP or is it a message state?
+class TAO_Export TAO_GIOP_Message_State : public TAO_Message_State_Factory
{
// = TITLE
- // Generic definitions for Message States.
+ // Generic definitions for Message States.
//
// = DESCRIPTION
- // This would represnt the state of the incoming message states.
+ // @@ Bala: please don't write comments in conditional form.
+ // @@ Don't say what the class could or would do, say what it
+ // @@ *does*
+ // @@ Bala: i remain unconvinced as to whether the base class here
+ // @@ is any useful.
+ //
+ // This would represent the state of the incoming message states.
// As the ORB processes incoming messages it need to keep track of
- // how much of the message has been read. if there are any
+ // how much of the message has been read, if there are any
// fragments following this message etc. This class attempts to
// give a generic interface to all the messaging protocols message
// states so that the Transport layer does not really know with
@@ -75,11 +85,11 @@ public:
~TAO_GIOP_Message_State (void);
// Dtor
-
+
void reset (int reset_contents = 1);
//Reset the message header state and prepare it to receive the next
// event.
-
+
CORBA::Boolean header_received (void) const;
// Has the header been received?
@@ -87,19 +97,19 @@ public:
// Check if the current message is complete, adjusting the fragments
// if required...
- TAO_GIOP_Version giop_version;
+ TAO_GIOP_Version giop_version;
// Version info
- CORBA::Octet byte_order;
+ CORBA::Octet byte_order;
// 0 = big, 1 = little
-
- CORBA::Octet more_fragments;
+
+ CORBA::Octet more_fragments;
// (Requests and Replys)
-
- CORBA::Octet message_type;
+
+ CORBA::Octet message_type;
// MsgType above
-
- CORBA::ULong message_size;
+
+ CORBA::ULong message_size;
// in byte_order!
CORBA::ULong current_offset;
@@ -134,8 +144,8 @@ public:
// the *complete* message (remember that the last message will be
// fragment and the upper level needs to know if it is a request,
// locate request or what).
-
-
+
+
private:
int append_fragment (ACE_Message_Block* current);
// Append <current> to the list of fragments