ACE_INet 7.1.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ACE::HTTP::SessionBase Class Referenceabstract

#include <HTTP_SessionBase.h>

Inheritance diagram for ACE::HTTP::SessionBase:
Inheritance graph
[legend]
Collaboration diagram for ACE::HTTP::SessionBase:
Collaboration graph
[legend]

Public Member Functions

 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
 
virtual bool is_connected () const =0
 
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 Types

enum  { DEFAULT_TIMEOUT = 30 , DEFAULT_KEEP_ALIVE_TIMEOUT = 8 }
 

Protected Member Functions

bool reconnect_needed ()
 
void close_streams ()
 
virtual bool connect_i (const ACE_Synch_Options &sync_opt)=0
 
virtual void close_i ()=0
 
virtual std::iostream & sock_stream ()=0
 

Protected Attributes

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 Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
DEFAULT_TIMEOUT 
DEFAULT_KEEP_ALIVE_TIMEOUT 

Constructor & Destructor Documentation

◆ SessionBase() [1/2]

ACE::HTTP::SessionBase::SessionBase ( u_short port,
bool keep_alive = false )

◆ SessionBase() [2/2]

ACE::HTTP::SessionBase::SessionBase ( u_short port,
const ACE_Time_Value & timeout,
bool keep_alive = false,
const ACE_Time_Value * alive_timeout = 0 )

◆ ~SessionBase()

ACE::HTTP::SessionBase::~SessionBase ( )
virtual

Member Function Documentation

◆ close()

void ACE::HTTP::SessionBase::close ( )

◆ close_i()

virtual void ACE::HTTP::SessionBase::close_i ( )
protectedpure virtual

◆ close_streams()

void ACE::HTTP::SessionBase::close_streams ( )
inlineprotected

◆ connect()

bool ACE::HTTP::SessionBase::connect ( bool use_reactor = false)

◆ connect_i()

virtual bool ACE::HTTP::SessionBase::connect_i ( const ACE_Synch_Options & sync_opt)
protectedpure virtual

◆ get_host()

const ACE_CString & ACE::HTTP::SessionBase::get_host ( ) const
inline

◆ get_port()

u_short ACE::HTTP::SessionBase::get_port ( ) const
inline

◆ get_proxy_target_host()

const ACE_CString & ACE::HTTP::SessionBase::get_proxy_target_host ( ) const
inline

◆ get_proxy_target_port()

u_short ACE::HTTP::SessionBase::get_proxy_target_port ( ) const
inline

◆ is_connected()

virtual bool ACE::HTTP::SessionBase::is_connected ( ) const
pure virtual

◆ is_proxy_connection()

bool ACE::HTTP::SessionBase::is_proxy_connection ( ) const
inline

◆ keep_alive()

bool ACE::HTTP::SessionBase::keep_alive ( ) const
inline

◆ receive_response()

std::istream & ACE::HTTP::SessionBase::receive_response ( Response & response)

◆ reconnect_needed()

bool ACE::HTTP::SessionBase::reconnect_needed ( )
inlineprotected

◆ request_stream() [1/2]

std::ostream & ACE::HTTP::SessionBase::request_stream ( )

◆ request_stream() [2/2]

std::ostream & ACE::HTTP::SessionBase::request_stream ( ACE::IOS::StreamInterceptor & interceptor)

◆ response_stream() [1/2]

std::istream & ACE::HTTP::SessionBase::response_stream ( )

◆ response_stream() [2/2]

std::istream & ACE::HTTP::SessionBase::response_stream ( ACE::IOS::StreamInterceptor & interceptor)

◆ send_request()

std::ostream & ACE::HTTP::SessionBase::send_request ( Request & request)

◆ set_host() [1/2]

void ACE::HTTP::SessionBase::set_host ( const ACE_CString & host)
inline

◆ set_host() [2/2]

void ACE::HTTP::SessionBase::set_host ( const ACE_CString & host,
u_short port )
inline

◆ set_keep_alive()

void ACE::HTTP::SessionBase::set_keep_alive ( bool f)
inline

◆ set_port()

void ACE::HTTP::SessionBase::set_port ( u_short port)
inline

◆ set_proxy_target()

void ACE::HTTP::SessionBase::set_proxy_target ( const ACE_CString & host,
u_short port )
inline

◆ sock_stream()

virtual std::iostream & ACE::HTTP::SessionBase::sock_stream ( )
protectedpure virtual

Member Data Documentation

◆ cannot_reconnect_

bool ACE::HTTP::SessionBase::cannot_reconnect_
protected

◆ expects_response_body_

bool ACE::HTTP::SessionBase::expects_response_body_
protected

◆ host_

ACE_CString ACE::HTTP::SessionBase::host_
protected

◆ http_timeout_

ACE_Time_Value ACE::HTTP::SessionBase::http_timeout_
protected

◆ in_stream_

IStream* ACE::HTTP::SessionBase::in_stream_
protected

◆ keep_alive_

bool ACE::HTTP::SessionBase::keep_alive_
protected

◆ keep_alive_timeout_

ACE_Time_Value ACE::HTTP::SessionBase::keep_alive_timeout_
protected

◆ needs_reconnect_

bool ACE::HTTP::SessionBase::needs_reconnect_
protected

◆ out_stream_

OStream* ACE::HTTP::SessionBase::out_stream_
protected

◆ port_

u_short ACE::HTTP::SessionBase::port_
protected

◆ proxy_connection_

bool ACE::HTTP::SessionBase::proxy_connection_
protected

◆ proxy_target_host_

ACE_CString ACE::HTTP::SessionBase::proxy_target_host_
protected

◆ proxy_target_port_

u_short ACE::HTTP::SessionBase::proxy_target_port_
protected

◆ reactive_

bool ACE::HTTP::SessionBase::reactive_
protected

◆ reconnect_countdown_

ACE_Countdown_Time ACE::HTTP::SessionBase::reconnect_countdown_
protected

◆ reconnect_timer_

ACE_Time_Value ACE::HTTP::SessionBase::reconnect_timer_
protected

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