3 // ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
4 // TAO and the TAO IDL Compiler have been developed by the Center for
5 // Distributed Object Computing at Washington University, St. Louis.
7 // Information about TAO is available at:
8 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
10 #include "Messenger_i.h"
11 #include "ace/OS_NS_unistd.h"
14 // Implementation skeleton constructor
15 Messenger_i::Messenger_i (void)
19 // Implementation skeleton destructor
20 Messenger_i::~Messenger_i (void)
24 CORBA::Boolean
Messenger_i::send_message (
25 const char * user_name
,
29 // Force a delay in the reply in order to test the Relative Roundtrip Timeout Policy
30 ACE_OS::sleep(ACE_Time_Value(0, 100 * 1000));
32 std::cout
<< "Message from: " << user_name
<< std::endl
;
33 std::cout
<< "Subject: " << subject
<< std::endl
;
34 std::cout
<< "Message: " << message
<< std::endl
;