1 #include "Messenger_i.h"
4 // Implementation skeleton constructor
5 Messenger_i::Messenger_i ()
9 // Implementation skeleton destructor
10 Messenger_i::~Messenger_i ()
14 CORBA::Boolean
Messenger_i::send_message (
15 const char * user_name
,
19 std::cout
<< "Message from: " << user_name
<< std::endl
;
20 std::cout
<< "Subject: " << subject
<< std::endl
;
21 std::cout
<< "Message: " << message
<< std::endl
;
22 CORBA::string_free(message
);
23 message
= CORBA::string_dup("Thanks for the message.");