diff options
author | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-26 16:00:13 +0000 |
---|---|---|
committer | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-26 16:00:13 +0000 |
commit | c0a3b71fc37b3e2522109738f128766dcd42e687 (patch) | |
tree | 620742bc5d94389cd39070e9de5a7973a10cc7ef | |
parent | 250bae57b4edb802aac812361bf81383ddbe637e (diff) | |
download | ATCD-c0a3b71fc37b3e2522109738f128766dcd42e687.tar.gz |
refactoring protocols hooks
-rw-r--r-- | TAO/tao/Default_Policy_Protocols_Hooks.cpp | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/TAO/tao/Default_Policy_Protocols_Hooks.cpp b/TAO/tao/Default_Policy_Protocols_Hooks.cpp new file mode 100644 index 00000000000..c720e87f256 --- /dev/null +++ b/TAO/tao/Default_Policy_Protocols_Hooks.cpp @@ -0,0 +1,96 @@ +// $Id$ + +#include "tao/Default_Policy_Protocols_Hooks.h" +#include "ace/Log_Msg.h" +#include "tao/Stub.h" +#include "tao/ORB_Core.h" +#include "tao/MProfile.h" +#include "tao/Service_Context.h" +#include "tao/Acceptor_Registry.h" +#include "tao/Thread_Lane_Resources.h" +#include "tao/Protocol_Factory.h" +#include "tao/Transport_Acceptor.h" +#include "tao/Transport_Connector.h" +#include "tao/Policy_Set.h" +#include "tao/debug.h" +#include "tao/CDR.h" +#include "ace/Dynamic_Service.h" +#include "ace/OS_NS_string.h" +#include "tao/Client_Network_Priority_Policy.h" + +ACE_RCSID (tao, + Default_Policy_Protocols_Hooks, + "$Id$") + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +TAO_Default_Policy_Protocols_Hooks::~TAO_Default_Policy_Protocols_Hooks (void) +{ +} + +void +TAO_Default_Policy_Protocols_Hooks::add_rt_service_context_hook ( + TAO_Service_Context &, + CORBA::Policy *, + CORBA::Short & + ACE_ENV_ARG_DECL_NOT_USED) +{ +} + +void +TAO_Default_Policy_Protocols_Hooks::get_selector_hook (CORBA::Policy *, + CORBA::Boolean &, + CORBA::Short &) +{ +} + +void +TAO_Default_Policy_Protocols_Hooks::get_selector_bands_policy_hook ( + CORBA::Policy *, CORBA::Short, CORBA::Short &, CORBA::Short &, int &) +{ +} + +void +TAO_Default_Policy_Protocols_Hooks::rt_service_context ( + TAO_Stub *, TAO_Service_Context &, CORBA::Boolean + ACE_ENV_ARG_DECL_NOT_USED) +{ +} + +CORBA::Boolean +TAO_Default_Policy_Protocols_Hooks::set_client_network_priority ( + IOP::ProfileId, TAO_Stub * ACE_ENV_ARG_DECL_NOT_USED) +{ + return true; +} + +CORBA::Boolean +TAO_Default_Policy_Protocols_Hooks::set_server_network_priority ( + IOP::ProfileId, CORBA::Policy * ACE_ENV_ARG_DECL_NOT_USED) +{ + return true; +} + +void +TAO_Default_Policy_Protocols_Hooks::set_dscp_codepoint ( + CORBA::Long & ACE_ENV_ARG_DECL_NOT_USED) +{ +} + +CORBA::Long +TAO_Default_Policy_Protocols_Hooks::get_dscp_codepoint (void) +{ + return 0; +} + +TAO_END_VERSIONED_NAMESPACE_DECL + +// **************************************************************** + +ACE_STATIC_SVC_DEFINE (TAO_Default_Policy_Protocols_Hooks, + ACE_TEXT ("Policy_Protocols_Hooks"), + ACE_SVC_OBJ_T, + &ACE_SVC_NAME (TAO_Default_Policy_Protocols_Hooks), + ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, + 0) +ACE_FACTORY_DEFINE (TAO, TAO_Default_Policy_Protocols_Hooks) |