Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Security / Big_Request / TX_Object_i.cpp
blob6e17de0d98ef39eb0dd754ddb44c9a787a6cc68f
1 // -*- C++ -*-
2 #include "TX_Object_i.h"
4 TX_Object_i::TX_Object_i (CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate (orb)),
6 data_ ()
10 void
11 TX_Object_i::send (const DataSeq & data)
13 this->data_ = data;
15 ACE_DEBUG ((LM_DEBUG,
16 "Received octet sequence of length:\t%u\n",
17 data.length ()));
20 void
21 TX_Object_i::recv (DataSeq_out data)
23 ACE_NEW_THROW_EX (data,
24 DataSeq,
25 CORBA::NO_MEMORY ());
27 (*data) = this->data_;
29 ACE_DEBUG ((LM_DEBUG,
30 "Sending octet sequence of length:\t%u\n",
31 data->length ()));
34 void
35 TX_Object_i::shutdown ()
37 this->orb_->shutdown (false);