1 // ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
2 // TAO and the TAO IDL Compiler have been developed by the Center for
3 // Distributed Object Computing at Washington University, St. Louis.
5 // Information about TAO is available at:
6 // http://www.cs.wustl.edu/~schmidt/TAO.html
9 #include "Terminator.h"
13 // Implementation skeleton constructor
14 Test_i::Test_i (Terminator
&terminator
)
16 , terminator_ (terminator
)
20 // Implementation skeleton destructor
21 Test_i::~Test_i (void)
26 Test_i::send_message (const char * user_name
,
30 std::cout
<< "Message count: " << message_count_
++ << std::endl
;
31 std::cout
<< "Message from: " << user_name
<< std::endl
32 << "Subject: " << subject
<< std::endl
33 << "Message: " << message
<< std::endl
;
34 if (message_count_
== 4)
36 ACE_Message_Block
*mb
= 0;
37 ACE_NEW_RETURN(mb
, ACE_Message_Block(2), 0);
38 ACE_OS::sprintf(mb
->wr_ptr (), "0");