blob: 9795ae822d4659b8e602255511de39b8ab57a5b5 (
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
// -*- C++ -*-
// ===================================================================
/**
* @file GIOP_Message_Generator_Parser_12.h
*
* $Id$
*
* @author Balachandran Natarajan <bala@cs.wustl.edu>
*/
// ===================================================================
#ifndef TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H
#define TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H
#include "ace/pre.h"
#include "tao/GIOP_Message_Generator_Parser.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
class TAO_GIOP_Message_State;
class TAO_Service_Context;
class TAO_Transport;
/**
* @class TAO_GIOP_Message_Generator_Parser_12
*
* @brief Implementation for GIOP v1.2
*
*/
class TAO_Export TAO_GIOP_Message_Generator_Parser_12:
public TAO_GIOP_Message_Generator_Parser
{
public:
/// Write the request header in to <msg>
virtual int write_request_header (
const TAO_Operation_Details &opdetails,
TAO_Target_Specification &spec,
TAO_OutputCDR &msg
);
/// Write the LocateRequest header
virtual int write_locate_request_header (
CORBA::ULong request_id,
TAO_Target_Specification &spec,
TAO_OutputCDR &msg
);
/// Write the reply header in to <output>
virtual int write_reply_header (
TAO_OutputCDR &output,
TAO_Pluggable_Reply_Params_Base &reply
TAO_ENV_ARG_DECL
)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Writes the locate _reply message in to the <output>
virtual int write_locate_reply_mesg (
TAO_OutputCDR &output,
CORBA::ULong request_id,
TAO_GIOP_Locate_Status_Msg &status
);
/// Parse the Request Header from the incoming stream. This will do a
/// version specific parsing of the incoming Request header
virtual int parse_request_header (TAO_ServerRequest &);
/// Parse the LocateRequest Header from the incoming stream. This will do a
/// version specific parsing of the incoming Request header
virtual int parse_locate_header (
TAO_GIOP_Locate_Request_Header &
);
/// Parse the reply message
virtual int parse_reply (TAO_InputCDR &input,
TAO_Pluggable_Reply_Params ¶ms);
/// Parse the locate reply message
virtual int parse_locate_reply (TAO_InputCDR &input,
TAO_Pluggable_Reply_Params ¶ms);
/// Our versions
virtual CORBA::Octet major_version (void);
virtual CORBA::Octet minor_version (void);
/// Is the messaging object ready for processing BiDirectional
/// request/response?
virtual int is_ready_for_bidirectional (void);
private:
/// Marshall the TargetSpecification
/// This method may be required for other GIOP versiona coming out
/// later than 1.2. We need to share this method
int marshall_target_spec (TAO_Target_Specification &spec,
TAO_OutputCDR &msg);
/// Check whether we have BiDirContext info available. If available
/// delegate the responsibility on to the TAO_Transport classes to
/// initiate action.
/// Note: At somepoint this may be needed for future versions of
/// GIOP and we may have to share this
int check_bidirectional_context (TAO_ServerRequest &);
/// Process the BiDirContext info that we have received.
int process_bidir_context (TAO_Service_Context &,
TAO_Transport *transport);
};
#if defined (__ACE_INLINE__)
# include "tao/GIOP_Message_Generator_Parser_12.inl"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H*/
|