From 66153e463c871397b35c216dfbd266c781b954a6 Mon Sep 17 00:00:00 2001 From: bala Date: Tue, 19 Jun 2001 02:30:21 +0000 Subject: ChangeLogTag: Mon Jun 18 20:32:07 2001 Balachandran Natarajan --- TAO/tests/Big_Reply/Big_Reply_i.cpp | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 TAO/tests/Big_Reply/Big_Reply_i.cpp (limited to 'TAO/tests/Big_Reply/Big_Reply_i.cpp') diff --git a/TAO/tests/Big_Reply/Big_Reply_i.cpp b/TAO/tests/Big_Reply/Big_Reply_i.cpp new file mode 100644 index 00000000000..58622b0d0ca --- /dev/null +++ b/TAO/tests/Big_Reply/Big_Reply_i.cpp @@ -0,0 +1,38 @@ +//$Id$ +#include "Big_Reply_i.h" + +Big_Reply_i::Big_Reply_i (CORBA::ORB_ptr orb, + CORBA::ULong len) + : orb_ (orb), + length_ (len) +{ +} + +Big_Reply_i::~Big_Reply_i (void) +{ + // no-op +} + +Test::Octet_Seq * +Big_Reply_i::get_big_reply (CORBA::Environment &ACE_TRY_ENV) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + Test::Octet_Seq_var reply_mesg; + + ACE_NEW_THROW_EX (reply_mesg, + Test::Octet_Seq (this->length_), + CORBA::NO_MEMORY ()); + + reply_mesg->length (this->length_); + + return reply_mesg._retn (); +} + + +void +Big_Reply_i::shutdown (CORBA::Environment & /*ACE_TRY_ENV*/) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + this->orb_->shutdown (); + ACE_CHECK; +} -- cgit v1.2.1