3 #include "ace/OS_NS_stdio.h"
4 #include "ace/OS_NS_string.h"
6 Simple_Server_i::Simple_Server_i (CORBA::ORB_ptr orb
, const char* key
)
7 : orb_ (CORBA::ORB::_duplicate (orb
))
8 , _key (CORBA::string_dup (key
))
12 Simple_Server_i::Simple_Server_i ()
18 Simple_Server_i::remote_call ()
20 ACE_DEBUG ((LM_DEBUG
, "SERVER(%C)> executing remote_call()\n", _key
.in()));
23 ACE_OS::sprintf (buf
, "remote_call() completed by %s", _key
.in());
25 ACE_DEBUG ((LM_DEBUG
, "SERVER(%C)> returning '%C'\n", _key
.in(), buf
));
26 return CORBA::string_dup (buf
);
31 Simple_Server_i::shutdown (const char* key
)
33 //FUZZ: disable check_for_lack_ACE_OS
34 ACE_DEBUG ((LM_DEBUG
, "SERVER(%C)> executing shutdown()\n", _key
.in()));
35 //FUZZ: enable check_for_lack_ACE_OS
38 if (!ACE_OS::strcmp (_key
.in(), key
))
40 this->orb_
->shutdown (false);
45 ACE_OS::sprintf (buf
, "shutdown() completed by %s, still_alive=%d",
46 _key
.in(), still_alive
);
47 ACE_DEBUG ((LM_DEBUG
, "SERVER(%C)> returning '%C'\n", _key
.in(), buf
));
48 return CORBA::string_dup (buf
);
52 Simple_Server_i::abort (const char* key
)
54 //FUZZ: disable check_for_lack_ACE_OS
55 ACE_DEBUG ((LM_DEBUG
, "SERVER(%C)> executing abort()\n", _key
.in()));
56 //FUZZ: enable check_for_lack_ACE_OS
59 if (!ACE_OS::strcmp (_key
.in(), key
))
66 ACE_OS::sprintf (buf
, "abort() completed by %s, still_alive=%d",
67 _key
.in(), still_alive
);
68 ACE_DEBUG ((LM_DEBUG
, "SERVER(%C)> returning '%C'\n", _key
.in(), buf
));
69 return CORBA::string_dup (buf
);