#include <DiffServPolicy.h>


Public Member Functions | |
| virtual int | init (int argc, ACE_TCHAR *[]) |
| Initialize the Diffserv loader hooks. | |
Static Public Member Functions | |
| static int | static_init (void) |
| Used to force the initialization of the ORB code. | |
Definition at line 31 of file DiffServPolicy.h.
| int TAO_DiffServPolicy_Initializer::init | ( | int | argc, | |
| ACE_TCHAR * | [] | |||
| ) | [virtual] |
Initialize the Diffserv loader hooks.
Register the EndpointPolicy ORBInitializer.
Reimplemented from ACE_Shared_Object.
Definition at line 27 of file DiffServPolicy.cpp.
{
PortableInterceptor::ORBInitializer_var orb_initializer;
try
{
PortableInterceptor::ORBInitializer_ptr temp_orb_initializer =
PortableInterceptor::ORBInitializer::_nil ();
/// Register the EndpointPolicy ORBInitializer.
ACE_NEW_THROW_EX (temp_orb_initializer,
TAO_DiffServPolicy_ORBInitializer,
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
TAO::VMCID,
ENOMEM),
CORBA::COMPLETED_NO));
orb_initializer = temp_orb_initializer;
PortableInterceptor::register_orb_initializer (orb_initializer.in ());
}
catch (const ::CORBA::Exception& ex)
{
if (TAO_debug_level > 0)
{
ex._tao_print_exception ("Caught exception:");
}
return -1;
}
return 0;
}
| int TAO_DiffServPolicy_Initializer::static_init | ( | void | ) | [static] |
Used to force the initialization of the ORB code.
Definition at line 15 of file DiffServPolicy.cpp.
{
TAO_ORB_Core::set_network_priority_protocols_hooks (
"DS_Network_Priority_Protocols_Hooks");
ACE_Service_Config::process_directive (
ace_svc_desc_TAO_DS_Network_Priority_Protocols_Hooks);
ACE_Service_Config::process_directive (
ace_svc_desc_TAO_DiffServPolicy_Initializer);
return 0;
}
1.7.0