blob: efaca8aadaebc4c7674fea1e3a50b4e255917d16 (
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
|
// -*- C++ -*-
//
// $Id$
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace FTP
{
ACE_INLINE
ClientRequestHandler::SessionHolder::session_type& ClientRequestHandler::SessionHolder::operator *()
{
return this->session_;
}
ACE_INLINE
ClientRequestHandler::SessionHolder::session_type* ClientRequestHandler::SessionHolder::operator -> ()
{
return &this->session_;
}
ACE_INLINE
bool ClientRequestHandler::uses_passive_mode () const
{
return this->use_passive_mode_;
}
ACE_INLINE
void ClientRequestHandler::use_passive_mode ()
{
this->use_passive_mode_ = true;
}
ACE_INLINE
void ClientRequestHandler::use_active_mode (u_short port)
{
this->use_passive_mode_ = false;
this->active_port_ = port;
}
ACE_INLINE
u_short ClientRequestHandler::uses_active_port () const
{
return this->active_port_;
}
ACE_INLINE
Request& ClientRequestHandler::request ()
{
return this->request_;
}
ACE_INLINE
const Request& ClientRequestHandler::request () const
{
return this->request_;
}
ACE_INLINE
Response& ClientRequestHandler::response ()
{
return this->response_;
}
ACE_INLINE
const Response& ClientRequestHandler::response () const
{
return this->response_;
}
ACE_INLINE
ClientRequestHandler::SessionHolder& ClientRequestHandler::session ()
{
return *this->session_;
}
ACE_INLINE
void ClientRequestHandler::session (SessionHolder* session)
{
this->session_ = session;
}
ACE_INLINE
std::ostream& ClientRequestHandler::request_stream ()
{
if (this->session_)
return this->out_data_stream_;
else
return ACE::IOS::Null::out_stream_;
}
ACE_INLINE
std::istream& ClientRequestHandler::response_stream ()
{
if (this->session_)
return this->in_data_stream_;
else
return ACE::IOS::Null::in_stream_;
}
}
}
ACE_END_VERSIONED_NAMESPACE_DECL
|