diff options
author | bala <balanatarajan@users.noreply.github.com> | 2001-01-02 01:12:13 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2001-01-02 01:12:13 +0000 |
commit | 9cafb4a50fe896e76b8dde9e1deb66538e350e12 (patch) | |
tree | b5293429fd019d003a102dc0f74784478b32e69e | |
parent | 235429120b036b50d4b1067fdaf83f5c4ca6784f (diff) | |
download | ATCD-9cafb4a50fe896e76b8dde9e1deb66538e350e12.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/tao/GIOP_Message_Handler.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/TAO/tao/GIOP_Message_Handler.cpp b/TAO/tao/GIOP_Message_Handler.cpp index 02c54980156..0c77f0fc5e8 100644 --- a/TAO/tao/GIOP_Message_Handler.cpp +++ b/TAO/tao/GIOP_Message_Handler.cpp @@ -34,8 +34,9 @@ TAO_GIOP_Message_Handler::read_parse_message (TAO_Transport *transport) { // Read the message from the transport ssize_t n = transport->read (this->current_buffer_.wr_ptr (), - this->message_size_); + this->message_size_ - this->current_buffer_.length ()); + cout << "The value of n is " << n <<endl; if (n == -1) { if (errno == EWOULDBLOCK) @@ -271,10 +272,14 @@ TAO_GIOP_Message_Handler::is_message_ready (void) if (this->message_status_ == TAO_GIOP_WAITING_FOR_PAYLOAD) { size_t len = this->current_buffer_.length (); + + cout << "The length is " << len <<endl; + int retval = 0; if (len == this->message_state_.message_size) { + cout << "Amba 1" <<endl; // If the buffer length is equal to the size of the payload we // have exactly one message. Check whether we have received // only the first part of the fragment. @@ -283,6 +288,7 @@ TAO_GIOP_Message_Handler::is_message_ready (void) } else if (len > this->message_state_.message_size) { + cout << "Amba 2" <<endl; // If the length is greater we have received some X messages // and a part of X + 1 messages (probably) with X varying // from 1 to N. @@ -301,7 +307,7 @@ TAO_GIOP_Message_Handler::is_message_ready (void) } } - + cout << "Amba 3" <<endl; // Just return allowing the reactor to call us back to get the rest // of the info |