summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_Invocation.h
blob: abad46ae8b594ec662fe939389cae65c6f164683 (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
// -*- C++ -*-
// $Id$

// ============================================================================
//
// = LIBRARY
//     TAO
//
// = FILENAME
//     GIOP_Message_Invocation.h
//
// = DESCRIPTION
//     Interface for the GIOP version 1.1 of the protocol
//
// = AUTHOR
//     Balachandran Natarajan <bala@cs.wustl.edu>
//
// ============================================================================
#ifndef _TAO_GIOP_MESSAGE_1_1_H_
#define _TAO_GIOP_MESSAGE_1_1_H_

#include "tao/GIOP_Message_Factory.h"

class TAO_Export TAO_GIOP_Client_Message_1_1:
  public TAO_GIOP_Client_Message_Factory
{
  // = TITLE
  //   Definitions of GIOP 1.1 specific stuff
  //
  // = DESCRIPTION
  //   This class will hold the specific details of 1.1 
  //   
public:
  
  TAO_GIOP_Client_Message_1_1 (void);
  // Ctor

  ~TAO_GIOP_Client_Message_1_1 (void);
  // Dtor

  CORBA::Boolean
  write_request_header (const IOP::ServiceContextList& svc_ctx,
                        CORBA::ULong request_id,
                        CORBA::Octet response_flags,
                        TAO_Stub *stub,
                        const CORBA::Short address_disposition,
                        const char *opname,
                        TAO_OutputCDR &msg);
  // Writes the rquest header.

  CORBA::Boolean write_locate_request_header (CORBA::ULong request_id,
                                              TAO_Stub *stub,
                                              const CORBA::Short address_disposition,
                                              TAO_OutputCDR &msg);
  // Write the locate request header

private:
  const size_t get_header_len (void);
  // Returns the header length 

  const size_t get_message_size_offset (void);
  // Returns the message size offset
};



const size_t TAO_GIOP_1_1_HEADER_LEN = 12;
const size_t TAO_GIOP_1_1_MESSAGE_SIZE_OFFSET = 8;

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

#endif /*TAO_IIOP_ACCEPTOR_1_1_H_ */