ACE_INet 7.1.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
ACE::HTTP::Session_T< ACE_SYNCH_DECL > Class Template Reference

#include <HTTP_Session.h>

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

Public Types

typedef ACE::IOS::StreamHandler< ACE_SOCK_STREAM, ACE_SYNCH_USEconnection_type
 

Public Member Functions

 Session_T (bool keep_alive=false)
 
 Session_T (const ACE_Time_Value &timeout, bool keep_alive=false, const ACE_Time_Value *alive_timeout=0)
 
virtual ~Session_T ()
 
virtual bool is_connected () const
 
bool attach_connection (connection_type *connection)
 
- Public Member Functions inherited from ACE::HTTP::SessionBase
 SessionBase (u_short port, bool keep_alive=false)
 
 SessionBase (u_short port, const ACE_Time_Value &timeout, bool keep_alive=false, const ACE_Time_Value *alive_timeout=0)
 
virtual ~SessionBase ()
 
void set_keep_alive (bool f)
 
bool keep_alive () const
 
void set_host (const ACE_CString &host, u_short port)
 
void set_host (const ACE_CString &host)
 
void set_port (u_short port)
 
void set_proxy_target (const ACE_CString &host, u_short port)
 
const ACE_CStringget_host () const
 
u_short get_port () const
 
bool is_proxy_connection () const
 
const ACE_CStringget_proxy_target_host () const
 
u_short get_proxy_target_port () const
 
bool connect (bool use_reactor=false)
 
std::ostream & send_request (Request &request)
 
std::ostream & request_stream ()
 
std::ostream & request_stream (ACE::IOS::StreamInterceptor &interceptor)
 
std::istream & receive_response (Response &response)
 
std::istream & response_stream ()
 
std::istream & response_stream (ACE::IOS::StreamInterceptor &interceptor)
 
void close ()
 

Protected Member Functions

void close_connection ()
 
virtual bool connect_i (const ACE_Synch_Options &sync_opt)
 
virtual void close_i ()
 
virtual std::iostream & sock_stream ()
 
- Protected Member Functions inherited from ACE::HTTP::SessionBase
bool reconnect_needed ()
 
void close_streams ()
 

Private Types

typedef ACE::IOS::Sock_IOStreamBase< ACE_SYNCH_USEsock_stream_type
 

Private Attributes

connection_typeconnection_
 
sock_stream_typesock_stream_
 

Additional Inherited Members

- Protected Types inherited from ACE::HTTP::SessionBase
enum  { DEFAULT_TIMEOUT = 30 , DEFAULT_KEEP_ALIVE_TIMEOUT = 8 }
 
- Protected Attributes inherited from ACE::HTTP::SessionBase
ACE_CString host_
 
u_short port_
 
bool proxy_connection_
 
ACE_CString proxy_target_host_
 
u_short proxy_target_port_
 
bool reactive_
 
IStreamin_stream_
 
OStreamout_stream_
 
ACE_Time_Value http_timeout_
 
ACE_Time_Value keep_alive_timeout_
 
ACE_Time_Value reconnect_timer_
 
ACE_Countdown_Time reconnect_countdown_
 
bool keep_alive_
 
bool needs_reconnect_
 
bool cannot_reconnect_
 
bool expects_response_body_
 

Member Typedef Documentation

◆ connection_type

◆ sock_stream_type

Constructor & Destructor Documentation

◆ Session_T() [1/2]

template<ACE_SYNCH_DECL >
ACE::HTTP::Session_T< ACE_SYNCH_DECL >::Session_T ( bool keep_alive = false)

◆ Session_T() [2/2]

template<ACE_SYNCH_DECL >
ACE::HTTP::Session_T< ACE_SYNCH_DECL >::Session_T ( const ACE_Time_Value & timeout,
bool keep_alive = false,
const ACE_Time_Value * alive_timeout = 0 )

◆ ~Session_T()

Member Function Documentation

◆ attach_connection()

template<ACE_SYNCH_DECL >
bool ACE::HTTP::Session_T< ACE_SYNCH_DECL >::attach_connection ( connection_type * connection)

◆ close_connection()

template<ACE_SYNCH_DECL >
void ACE::HTTP::Session_T< ACE_SYNCH_DECL >::close_connection ( )
protected

◆ close_i()

template<ACE_SYNCH_DECL >
void ACE::HTTP::Session_T< ACE_SYNCH_DECL >::close_i ( )
protectedvirtual

◆ connect_i()

template<ACE_SYNCH_DECL >
bool ACE::HTTP::Session_T< ACE_SYNCH_DECL >::connect_i ( const ACE_Synch_Options & sync_opt)
protectedvirtual

◆ is_connected()

template<ACE_SYNCH_DECL >
bool ACE::HTTP::Session_T< ACE_SYNCH_DECL >::is_connected ( ) const
virtual

◆ sock_stream()

template<ACE_SYNCH_DECL >
std::iostream & ACE::HTTP::Session_T< ACE_SYNCH_DECL >::sock_stream ( )
protectedvirtual

Member Data Documentation

◆ connection_

◆ sock_stream_


The documentation for this class was generated from the following files: