diff options
Diffstat (limited to 'TAO/tao/Block_Flushing_Strategy.cpp')
-rw-r--r-- | TAO/tao/Block_Flushing_Strategy.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/tao/Block_Flushing_Strategy.cpp b/TAO/tao/Block_Flushing_Strategy.cpp new file mode 100644 index 00000000000..bd49b02ad86 --- /dev/null +++ b/TAO/tao/Block_Flushing_Strategy.cpp @@ -0,0 +1,33 @@ +// -*- C++ -*- +// $Id$ + +#include "Block_Flushing_Strategy.h" +#include "Transport.h" +#include "Queued_Message.h" + +ACE_RCSID(tao, Block_Flushing_Strategy, "$Id$") + +int +TAO_Block_Flushing_Strategy::schedule_output (TAO_Transport *) +{ + return 0; +} + +int +TAO_Block_Flushing_Strategy::cancel_output (TAO_Transport *) +{ + return 0; +} + +int +TAO_Block_Flushing_Strategy::flush_message (TAO_Transport *transport, + TAO_Queued_Message *msg) +{ + while (!msg->done ()) + { + int result = transport->handle_output (); + if (result == -1) + return -1; + } + return 0; +} |