diff options
Diffstat (limited to 'TAO/tao/GIOP_Message_Lite.cpp')
-rw-r--r-- | TAO/tao/GIOP_Message_Lite.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/TAO/tao/GIOP_Message_Lite.cpp b/TAO/tao/GIOP_Message_Lite.cpp index 55c1159bed2..54c715afc17 100644 --- a/TAO/tao/GIOP_Message_Lite.cpp +++ b/TAO/tao/GIOP_Message_Lite.cpp @@ -355,27 +355,10 @@ TAO_GIOP_Message_Lite::format_message (TAO_OutputCDR &stream) // versions seem to need it though. Leaving it costs little. if (TAO_debug_level > 2) { - // Check whether the output cdr stream is build up of multiple - // messageblocks. If so, consolidate them to one block that can be - // dumped - ACE_Message_Block* consolidated_block = 0; - if (stream.begin()->cont() != 0) - { - consolidated_block = new ACE_Message_Block; - ACE_CDR::consolidate(consolidated_block, stream.begin()); - buf = (char *) (consolidated_block->rd_ptr ()); - } - /// - this->dump_msg ("send", ACE_reinterpret_cast (u_char *, buf), stream.length ()); - - // - delete consolidated_block; - consolidated_block = 0; - // } return 0; @@ -1367,7 +1350,9 @@ TAO_GIOP_Message_Lite::send_error (TAO_Transport *transport) ACE_Message_Block message_block(&data_block); message_block.wr_ptr (TAO_GIOP_LITE_HEADER_LEN); - int result = transport->send (&message_block); + size_t bytes_transferred; + int result = transport->send_message_block_chain (&message_block, + bytes_transferred); if (result == -1) { if (TAO_debug_level > 0) |