summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_Accept_State.h
blob: 1d9e989819e9a12ebc877ec4c3ef12cb36ab2f15 (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
// -*- C++ -*-
//$Id$
// ============================================================================
//
// = LIBRARY
//     TAO
//
// = FILENAME
//     GIOP_Message_Acceptors.h
//
// = DESCRIPTION
//     
//
// = AUTHOR
//     Balachandran Natarajan <bala@cs.wustl.edu>
// ============================================================================
#ifndef _TAO_GIOP_MESSAGE_ACCEPT_STATE_H_
#define _TAO_GIOP_MESSAGE_ACCEPT_STATE_H_
#include "tao/GIOP_Server_Request.h"
#include "tao/GIOP_Assorted_Headers.h"


class TAO_GIOP_Message_Accept_State
{
  // = TITLE
  // = DESCRIPTION
 public:

  virtual int parse_request_header (TAO_GIOP_ServerRequest &) = 0;
  // Parse the Request Header from the incoming stream. This will do a
  // version specific parsing of the incoming Request header
  
  virtual CORBA::Boolean write_reply_header (TAO_OutputCDR &output,
                                             CORBA::ULong request_id) = 0;

  virtual int parse_locate_header (TAO_GIOP_Locate_Request_Header &) = 0; 
  // Parse the Loacte Request Header from the incoming stream. This will do a
  // version specific parsing of the incoming Request header
 
  virtual CORBA::Boolean 
  write_locate_reply_mesg (TAO_OutputCDR &output,
                           CORBA::ULong request_id,
                           TAO_GIOP_Locate_Status_Msg &status) = 0;
  
  virtual CORBA::Octet major_version (void) = 0;
  virtual CORBA::Octet minor_version (void) = 0;
 private:
  
};

class TAO_GIOP_Message_Accept_State_11 :
  public TAO_GIOP_Message_Accept_State
{
  // = TITLE
  // = DESCRIPTION
  
public:
  virtual int parse_request_header (TAO_GIOP_ServerRequest &);
  // Parse the Request Header from the incoming stream. This will do a
  // version specific parsing of the incoming Request header


  virtual CORBA::Boolean  write_reply_header (TAO_OutputCDR &output,
                                              CORBA::ULong request_id);
  
  virtual int parse_locate_header (TAO_GIOP_Locate_Request_Header &);
  // Parse the Loacte Request Header from the incoming stream. This will do a
  // version specific parsing of the incoming Request header
  
  virtual CORBA::Boolean 
  write_locate_reply_mesg (TAO_OutputCDR &output,
                           CORBA::ULong request_id,
                           TAO_GIOP_Locate_Status_Msg &status);
  
  virtual CORBA::Octet major_version (void);
  virtual CORBA::Octet minor_version (void);
  
private:

};

class TAO_GIOP_Message_Accept_State_10 :
  public TAO_GIOP_Message_Accept_State_11
{
  // = TITLE
  // = DESCRIPTION
public:
  virtual CORBA::Octet minor_version (void);
};

class TAO_GIOP_Message_Accept_Impl
{
  // = TITLE
  // = DESCRIPTION
 public:
  CORBA::Boolean check_revision (CORBA::Octet incoming_major,
                                 CORBA::Octet incoming_minor);
  // Performs a check of the revision tags

  TAO_GIOP_Message_Accept_State_10 version_10;
  TAO_GIOP_Message_Accept_State_11 version_11;
  
};

#if defined (__ACE_INLINE__)
# include "tao/GIOP_Message_Accept_State.i"
#endif /* __ACE_INLINE__ */

#endif /*_TAO_GIOP_MESSAGE_ACCEPT_STATE_H_*/