summaryrefslogtreecommitdiff
path: root/apps/JAWS/PROTOTYPE/HTTPU/http_base.i
blob: 3c862c5b5fbfdc9142648cc08f8cab93f91e79ce (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
// -*- c++ -*-
// $Id$

#if !defined (ACE_HAS_INLINED_OSCALLS)
# undef ACE_INLINE
# define ACE_INLINE
#endif /* ACE_HAS_INLINED_OSCALLS */

ACE_INLINE
HTTP_Base::HTTP_Base (void)
  : status_ (200),
    line_ (0),
    deliver_state_ (0),
    no_headers_ (0),
    iter_ (*(this->info_.table ())),
    mb_ (0)
{
}

ACE_INLINE
HTTP_Base::~HTTP_Base (void)
{
  if (this->line_)
    ACE_OS::free (this->line_);
  if (this->mb_)
    delete this->mb_;
  this->line_ = 0;
  this->mb_ = 0;
}

ACE_INLINE int
HTTP_Base::status (void) const
{
  return this->status_;
}

ACE_INLINE const char *
HTTP_Base::line (void) const
{
  return this->line_;
}

ACE_INLINE HTTP_Headers *
HTTP_Base::http_headers (void)
{
  return &(this->info_);
}

ACE_INLINE JAWS_Headers *
HTTP_Base::headers (void)
{
  return this->info_.table ();
}