Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / ZIOP / Hello.cpp
blob40baa27e09fd5f76782ab233a9483eb40b359528
1 #include "Hello.h"
3 Hello::Hello (CORBA::ORB_ptr orb)
4 : orb_ (CORBA::ORB::_duplicate (orb))
8 char *
9 Hello::get_string (const char * mystring)
11 ACE_DEBUG ((LM_DEBUG, "Received <%s>\n", mystring));
12 return CORBA::string_dup ("Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!Hello there!");
15 Test::Octet_Seq *
16 Hello::get_big_reply (CORBA::ULong size)
18 Test::Octet_Seq_var reply_mesg =
19 new Test::Octet_Seq (size);
21 reply_mesg->length (size);
23 for (CORBA::ULong i = 0u; i < size; ++i)
25 reply_mesg[i]= static_cast<CORBA::Octet> (i & 0xff);
27 return reply_mesg._retn ();
30 void
31 Hello::big_request (const ::Test::Octet_Seq & octet_in)
33 if (octet_in.length () > 0)
35 ACE_DEBUG ((LM_DEBUG,
36 ACE_TEXT("Server side BLOB received len = %d\n"),
37 octet_in.length ()));
39 else
41 ACE_DEBUG ((LM_ERROR,
42 ACE_TEXT("Error receiving BLOB on server\n")));
46 void
47 Hello::shutdown ()
49 this->orb_->shutdown (false);