summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_Base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/GIOP_Message_Base.cpp')
-rw-r--r--TAO/tao/GIOP_Message_Base.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/TAO/tao/GIOP_Message_Base.cpp b/TAO/tao/GIOP_Message_Base.cpp
index 20dd76f5ca7..45fcdb3792b 100644
--- a/TAO/tao/GIOP_Message_Base.cpp
+++ b/TAO/tao/GIOP_Message_Base.cpp
@@ -347,74 +347,6 @@ TAO_GIOP_Message_Base::dump_msg (const char *label,
}
}
-
-
-int
-TAO_GIOP_Message_Base::parse_header (TAO_GIOP_Message_State *state)
-{
- char *buf = state->cdr.rd_ptr ();
-
- // Let us be specific that it is for 1.0
- if (this->minor_version () == 0 &&
- this->major_version () == 1)
- {
- state->byte_order = buf[this->flags_offset ()];
- if (TAO_debug_level > 2
- && state->byte_order != 0 && state->byte_order != 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("TAO (%P|%t) invalid byte order <%d>")
- ASYS_TEXT (" for version <1.0>\n"),
- state->byte_order));
- return -1;
- }
- }
- else
- {
- state->byte_order =
- (CORBA::Octet) (buf[this->flags_offset ()]& 0x01);
- state->more_fragments =
- (CORBA::Octet) (buf[this->flags_offset ()]& 0x02);
-
- if (TAO_debug_level > 2
- && (buf[this->flags_offset ()] & ~0x3) != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("TAO (%P|%t) invalid flags for <%d>")
- ASYS_TEXT (" for version <%d %d> \n"),
- buf[this->flags_offset ()],
- this->major_version (),
- this->minor_version ()));
- return -1;
- }
- }
-
- // Get the message type
- state->message_type = buf[this->message_type_offset ()];
-
- // Reset our input CDR stream
- state->cdr.reset_byte_order (state->byte_order);
-
-
- state->cdr.skip_bytes (this->message_size_offset ());
- state->cdr.read_ulong (state->message_size);
-
- if (TAO_debug_level > 2)
- {
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("TAO (%P|%t) Parsed header = <%d,%d,%d,%d,%d>\n"),
- this->major_version (),
- this->minor_version (),
- state->byte_order,
- state->message_type,
- state->message_size));
- }
-
- return 1;
-}
-
-
-
// Send an "I can't understand you" message -- again, the message is
// prefabricated for simplicity. This implies abortive disconnect (at
// the application level, if not at the level of TCP).