diff options
author | bala <balanatarajan@users.noreply.github.com> | 2000-12-27 13:12:04 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2000-12-27 13:12:04 +0000 |
commit | f01e48759dbeffff46130d6ea2a874d1c0ccfc04 (patch) | |
tree | 7a064e2d0258965c0141753382c90b6871b8c8e9 | |
parent | 1ad06c0edad29152e1eeda0b8b39163b11e4d57c (diff) | |
download | ATCD-f01e48759dbeffff46130d6ea2a874d1c0ccfc04.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/tao/GIOP_Message_Base.cpp | 25 | ||||
-rw-r--r-- | TAO/tao/GIOP_Message_Handler.cpp | 9 |
2 files changed, 23 insertions, 11 deletions
diff --git a/TAO/tao/GIOP_Message_Base.cpp b/TAO/tao/GIOP_Message_Base.cpp index 648dc1cb264..bb8bc4df912 100644 --- a/TAO/tao/GIOP_Message_Base.cpp +++ b/TAO/tao/GIOP_Message_Base.cpp @@ -207,12 +207,13 @@ TAO_GIOP_Message_Base::read_message (TAO_Transport *transport, char *buf = this->message_handler_.message_block ()->rd_ptr (); buf -= len; size_t msg_len = - this->message_handler_.message_block ()->length () + len; + state.message_size + len; - TAO_GIOP_Message_Base::dump_msg ("recv", - ACE_reinterpret_cast (u_char *, - buf), - msg_len); + this->dump_msg ("recv", + ACE_reinterpret_cast (u_char *, + buf), + msg_len); + cout << "We are here " << "jj" <<endl; } return this->message_handler_.is_message_ready (); } @@ -333,7 +334,10 @@ TAO_GIOP_Message_Base::process_request_message (TAO_Transport *transport, orb_core); - + // When the data block is used for creating the CDR stream, we loose + // track of the read pointer of the message block in the message + // handler. + input_cdr.skip_bytes (TAO_GIOP_MESSAGE_HEADER_LEN); // Send the message state for the service layer like FT to log the // messages @@ -377,8 +381,12 @@ TAO_GIOP_Message_Base::process_reply_message ( // Steal the input CDR from the message block TAO_InputCDR input_cdr (msg_block->data_block (), - ACE_CDR_BYTE_ORDER, - orb_core); + ACE_CDR_BYTE_ORDER); + + // When the data block is used for creating the CDR stream, we loose + // track of the read pointer of the message block in the message + // handler. + input_cdr.skip_bytes (TAO_GIOP_MESSAGE_HEADER_LEN); // Reset the message state. Now, we are ready for the next nested // upcall if any. @@ -498,6 +506,7 @@ TAO_GIOP_Message_Base::process_request (TAO_Transport *transport, CORBA::ULong request_id = 0; CORBA::Boolean response_required = 0; + cout << "Amba are we here " <<endl; int parse_error = 0; ACE_TRY diff --git a/TAO/tao/GIOP_Message_Handler.cpp b/TAO/tao/GIOP_Message_Handler.cpp index 20a6ff9b322..a8f1267bb4c 100644 --- a/TAO/tao/GIOP_Message_Handler.cpp +++ b/TAO/tao/GIOP_Message_Handler.cpp @@ -265,9 +265,12 @@ TAO_GIOP_Message_Handler::is_message_ready (void) // If the length of the buffer is greater than the size of the // message that we received then process that message. If not // just return allowing the reactor to call us back. - if (this->current_buffer_.length () < (this->message_state_.message_size + - TAO_GIOP_MESSAGE_HEADER_LEN)) - return 0; + if (this->current_buffer_.length () < + (this->message_state_.message_size)) + + { + return 0; + } } this->message_status_ = TAO_GIOP_WAITING_FOR_HEADER; |