summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-25 23:08:19 +0000
committerjai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-25 23:08:19 +0000
commitf1c9fad9476783436e2bf6939044b4563c0220cc (patch)
treef40d3e31d10ec51c55e64da96103b15f3ae1124a
parent712494562d94a2a80661c8a0cd3c83b121a22cab (diff)
downloadATCD-f1c9fad9476783436e2bf6939044b4563c0220cc.tar.gz
refactoring protocols hooks
-rw-r--r--TAO/tao/Default_Network_Priority_Protocols_Hooks.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/TAO/tao/Default_Network_Priority_Protocols_Hooks.h b/TAO/tao/Default_Network_Priority_Protocols_Hooks.h
new file mode 100644
index 00000000000..05f41afc045
--- /dev/null
+++ b/TAO/tao/Default_Network_Priority_Protocols_Hooks.h
@@ -0,0 +1,65 @@
+// -*- C++ -*-
+
+// ===================================================================
+/**
+ * @file Default_Network_Priority_Protocols_Hooks.h
+ *
+ * $Id$
+ *
+ * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ * Johnny Willemsen <jwillemsen@remedy.nl>
+ */
+// ===================================================================
+
+#ifndef TAO_DEFAULT_NETWORK_PRIORITY_PROTOCOLS_HOOKS_H
+#define TAO_DEFAULT_NETWORK_PRIORITY_PROTOCOLS_HOOKS_H
+
+#include /**/ "ace/pre.h"
+#include "ace/Service_Config.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/Network_Priority_Protocols_Hooks.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+class TAO_POA;
+
+class TAO_Export TAO_Default_Network_Priority_Protocols_Hooks
+ : public TAO_Network_Priority_Protocols_Hooks
+{
+public:
+
+ /// destructor
+ virtual ~TAO_Default_Network_Priority_Protocols_Hooks (void);
+
+ CORBA::Long get_dscp_codepoint (void);
+
+ void set_dscp_codepoint (CORBA::Long &dscp_codepoint
+ ACE_ENV_ARG_DECL);
+
+ void np_service_context (TAO_Stub *stub,
+ TAO_Service_Context &service_context,
+ CORBA::Boolean restart
+ ACE_ENV_ARG_DECL);
+
+ void add_rep_np_service_context_hook (
+ TAO_Service_Context &service_context,
+ CORBA::Long &dscp_codepoint
+ ACE_ENV_ARG_DECL);
+
+protected:
+
+ CORBA::Long dscp_codepoint_;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+ACE_STATIC_SVC_DECLARE_EXPORT (TAO,
+ TAO_Default_Network_Priority_Protocols_Hooks)
+ACE_FACTORY_DECLARE (TAO, TAO_Default_Network_Priority_Protocols_Hooks)
+
+#include /**/ "ace/post.h"
+#endif /* TAO_DEFAULT_NETWORK_PRIORITY_PROTOCOLS_HOOKS_H */