summaryrefslogtreecommitdiff
path: root/modules/TAO/tao/Default_Network_Priority_Protocols_Hooks.h
blob: 8d12ad483f5c71f00e7b91858027653da409f377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// -*- 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);

  void init_hooks (TAO_ORB_Core *orb_core);

  const CORBA::Long get_dscp_codepoint (TAO_Stub *stub, CORBA::Object *object);

  const CORBA::Long get_dscp_codepoint (TAO_Service_Context &service_context);

  void np_service_context (TAO_Stub *stub,
                           TAO_Service_Context &service_context,
                           CORBA::Boolean restart);

  void add_rep_np_service_context_hook (
    TAO_Service_Context &service_context,
    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 */