summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_State.inl
blob: bec93790aaddf0d1d2816c8291505216137400bf (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
// -*- C++ -*-

//$Id$

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
TAO_GIOP_Message_State::TAO_GIOP_Message_State (void)
  : giop_version_ (TAO_DEF_GIOP_MAJOR,
                   TAO_DEF_GIOP_MINOR),
    byte_order_ (0),
    message_type_ (GIOP::Request),
    payload_size_ (0),
    more_fragments_ (false)
#if defined (TAO_HAS_ZIOP) && TAO_HAS_ZIOP ==1
    , compressed_ (false)
#endif
{
}

ACE_INLINE CORBA::ULong
TAO_GIOP_Message_State::message_size (void) const
{
  return this->payload_size_ + TAO_GIOP_MESSAGE_HEADER_LEN;
}

ACE_INLINE CORBA::ULong
TAO_GIOP_Message_State::payload_size (void) const
{
  return this->payload_size_;
}

ACE_INLINE CORBA::Octet
TAO_GIOP_Message_State::byte_order (void) const
{
  return this->byte_order_;
}

ACE_INLINE GIOP::MsgType
TAO_GIOP_Message_State::message_type (void) const
{
  return this->message_type_;
}

ACE_INLINE CORBA::Boolean
TAO_GIOP_Message_State::more_fragments (void) const
{
  return this->more_fragments_;
}

ACE_INLINE void
TAO_GIOP_Message_State::more_fragments (CORBA::Boolean fragment)
{
  this->more_fragments_ = fragment;
}

ACE_INLINE TAO_GIOP_Message_Version const &
TAO_GIOP_Message_State::giop_version (void) const
{
  return this->giop_version_;
}

#if defined (TAO_HAS_ZIOP) && TAO_HAS_ZIOP ==1
ACE_INLINE CORBA::Boolean
TAO_GIOP_Message_State::compressed (void) const
{
  return this->compressed_;
}
#endif

TAO_END_VERSIONED_NAMESPACE_DECL