blob: 28d2c558670f4c04154ecf9de4aa5243e4503b72 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
* @file RT_Invocation_Endpoint_Selectors.h
*
* $Id$
*
* Strategies for selecting profile/endpoint from an IOR for making an
* invocation.
*
*
* @author Priyanka Gontla <pgontla@ece.uci.edu>
*/
//=============================================================================
#ifndef TAO_RT_INVOCATION_ENDPOINT_SELECTOR_H
#define TAO_RT_INVOCATION_ENDPOINT_SELECTOR_H
#include /**/ "ace/pre.h"
#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/orbconf.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#include "RTCORBA.h"
#include "tao/Invocation_Endpoint_Selectors.h"
class TAO_MProfile;
class TAO_Endpoint;
/**
* @class TAO_RT_Invocation_Endpoint_Selector
*
* @brief TAO_RT_Invocation_Endpoint_Selector
*
* This strategy is used when the only policy that might be set is the
* private connection policy.
*
**/
class TAO_RTCORBA_Export TAO_RT_Invocation_Endpoint_Selector :
public TAO_Default_Endpoint_Selector
{
public:
void select_endpoint (TAO::Profile_Transport_Resolver *r,
ACE_Time_Value *val
ACE_ENV_ARG_DECL);
protected:
void select_endpoint_based_on_client_protocol_policy (
TAO::Profile_Transport_Resolver &r,
RTCORBA::ClientProtocolPolicy_ptr client_protocol_policy,
RTCORBA::ProtocolList &protocols,
ACE_Time_Value *v
ACE_ENV_ARG_DECL
);
int endpoint_from_profile (TAO::Profile_Transport_Resolver &r,
ACE_Time_Value *v
ACE_ENV_ARG_DECL);
};
#if defined (__ACE_INLINE__)
# include "RT_Invocation_Endpoint_Selectors.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
#endif /* TAO_RT_INVOCATION_ENDPOINT_SELECTOR_H */
|