summaryrefslogtreecommitdiff
path: root/TAO/tao/Remote_Invocation.h
blob: a53ae3b0b63de00b58f680e408905d6326b5255c (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
// -*- C++ -*-

//=============================================================================
/**
 *  @file    Remote_Invocation.h
 *
 *  $Id$
 *
 *
 *  @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
 */
//=============================================================================
#ifndef TAO_REMOTE_INVOCATION_H
#define TAO_REMOTE_INVOCATION_H
#include "ace/pre.h"

#include "tao/TAO_Export.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/Invocation_Base.h"
#include "ace/CORBA_macros.h"


class TAO_Operation_Details;
class TAO_Target_Specification;
class TAO_OutputCDR;

namespace CORBA
{
  class Environment;
}

namespace TAO
{
  class Profile_Transport_Resolver;
  class Argument;



  /**
   * @class Remote_Invocation
   *
   * @brief Base class for Twoway_Invocation and Oneway_Invocation.
   *
   */
  class TAO_Export Remote_Invocation : protected Invocation_Base
  {
  public:
    Remote_Invocation (Profile_Transport_Resolver &resolver,
                       TAO_Operation_Details &detail);

  protected:

    void init_target_spec (TAO_Target_Specification &spec
                           ACE_ENV_ARG_DECL);

    void write_header (TAO_Target_Specification &spec,
                       TAO_OutputCDR &out_stream
                       ACE_ENV_ARG_DECL);

    void marshal_data (TAO_OutputCDR &cdr
                       ACE_ENV_ARG_DECL);

    Invocation_Status send_message (TAO_OutputCDR &cdr,
                                    short message_semantics,
                                    ACE_Time_Value *max_wait_time
                                    ACE_ENV_ARG_DECL);

  protected:
    Profile_Transport_Resolver &resolver_;
  };
}

#endif /*TAO_REMOTE_INVOCATION_H*/