Public Types | Public Member Functions | Private Types | Private Attributes

ACE::FTP::Session_T< ACE_SYNCH_DECL > Class Template Reference

#include <FTP_Session.h>

Collaboration diagram for ACE::FTP::Session_T< ACE_SYNCH_DECL >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { FTP_PORT = 21 }
typedef
ACE::IOS::StreamHandler
< ACE_SOCK_STREAM,
ACE_SYNCH_USE > 
connection_type

Public Member Functions

 Session_T ()
 Session_T (const ACE_Time_Value &timeout)
virtual ~Session_T ()
bool is_connected () const
bool is_new_connection () const
void set_host (const ACE_CString &host, u_short port)
void set_host (const ACE_CString &host)
void set_port (u_short port)
const ACE_CStringget_host () const
u_short get_port () const
bool connect (bool use_reactor=false)
bool connect (connection_type *connection)
bool send_request (Request &request)
bool receive_response (Response &response)
bool send_interrupt ()
void close ()
bool supports_ftp_extensions () const
void set_ftp_extension_support (bool f)
bool is_reactive () const
const ACE_Time_Valuetimeout () const
void get_local_addr (ACE_INET_Addr &loc_addr) const

Private Types

enum  { DEFAULT_TIMEOUT = 30, INTERRUPT = 244 }
typedef
ACE::IOS::Sock_IOStreamBase
< ACE_SYNCH_USE > 
sock_stream_type

Private Attributes

ACE_CString host_
u_short port_
bool reactive_
connection_typeconnection_
sock_stream_typesock_stream_
ACE_Time_Value ftp_timeout_
bool cannot_reconnect_
bool has_ftp_ext_
bool new_connect_

template<ACE_SYNCH_DECL>
class ACE::FTP::Session_T< ACE_SYNCH_DECL >


Member Typedef Documentation

template<ACE_SYNCH_DECL >
typedef ACE::IOS::StreamHandler<ACE_SOCK_STREAM, ACE_SYNCH_USE> ACE::FTP::Session_T< ACE_SYNCH_DECL >::connection_type
template<ACE_SYNCH_DECL >
typedef ACE::IOS::Sock_IOStreamBase<ACE_SYNCH_USE> ACE::FTP::Session_T< ACE_SYNCH_DECL >::sock_stream_type [private]

Member Enumeration Documentation

template<ACE_SYNCH_DECL >
anonymous enum
Enumerator:
FTP_PORT 
template<ACE_SYNCH_DECL >
anonymous enum [private]
Enumerator:
DEFAULT_TIMEOUT 
INTERRUPT 

Constructor & Destructor Documentation

template<ACE_SYNCH_DECL >
ACE::FTP::Session_T< ACE_SYNCH_DECL >::Session_T (  ) 
template<ACE_SYNCH_DECL >
ACE::FTP::Session_T< ACE_SYNCH_DECL >::Session_T ( const ACE_Time_Value timeout  ) 
template<ACE_SYNCH_DECL >
ACE::FTP::Session_T< ACE_SYNCH_DECL >::~Session_T (  )  [virtual]

Member Function Documentation

template<ACE_SYNCH_DECL >
void ACE::FTP::Session_T< ACE_SYNCH_DECL >::close (  ) 
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::connect ( connection_type connection  ) 
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::connect ( bool  use_reactor = false  ) 
template<ACE_SYNCH_DECL >
const ACE_CString & ACE::FTP::Session_T< ACE_SYNCH_DECL >::get_host (  )  const
template<ACE_SYNCH_DECL >
void ACE::FTP::Session_T< ACE_SYNCH_DECL >::get_local_addr ( ACE_INET_Addr loc_addr  )  const
template<ACE_SYNCH_DECL >
u_short ACE::FTP::Session_T< ACE_SYNCH_DECL >::get_port (  )  const
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::is_connected (  )  const
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::is_new_connection (  )  const
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::is_reactive (  )  const
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::receive_response ( Response response  ) 
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::send_interrupt (  ) 
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::send_request ( Request request  ) 
template<ACE_SYNCH_DECL >
void ACE::FTP::Session_T< ACE_SYNCH_DECL >::set_ftp_extension_support ( bool  f  ) 
template<ACE_SYNCH_DECL >
void ACE::FTP::Session_T< ACE_SYNCH_DECL >::set_host ( const ACE_CString host,
u_short  port 
)
template<ACE_SYNCH_DECL >
void ACE::FTP::Session_T< ACE_SYNCH_DECL >::set_host ( const ACE_CString host  ) 
template<ACE_SYNCH_DECL >
void ACE::FTP::Session_T< ACE_SYNCH_DECL >::set_port ( u_short  port  ) 
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::supports_ftp_extensions (  )  const
template<ACE_SYNCH_DECL >
const ACE_Time_Value & ACE::FTP::Session_T< ACE_SYNCH_DECL >::timeout (  )  const

Member Data Documentation

template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::cannot_reconnect_ [private]
template<ACE_SYNCH_DECL >
connection_type* ACE::FTP::Session_T< ACE_SYNCH_DECL >::connection_ [private]
template<ACE_SYNCH_DECL >
ACE_Time_Value ACE::FTP::Session_T< ACE_SYNCH_DECL >::ftp_timeout_ [private]
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::has_ftp_ext_ [private]
template<ACE_SYNCH_DECL >
ACE_CString ACE::FTP::Session_T< ACE_SYNCH_DECL >::host_ [private]
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::new_connect_ [private]
template<ACE_SYNCH_DECL >
u_short ACE::FTP::Session_T< ACE_SYNCH_DECL >::port_ [private]
template<ACE_SYNCH_DECL >
bool ACE::FTP::Session_T< ACE_SYNCH_DECL >::reactive_ [private]
template<ACE_SYNCH_DECL >
sock_stream_type* ACE::FTP::Session_T< ACE_SYNCH_DECL >::sock_stream_ [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines