#include <SpdyClientSession.h>
Inherits Continuation, and PluginIdentity.
Public Member Functions | |
SpdyClientSession () | |
~SpdyClientSession () | |
void | init (NetVConnection *netvc, spdy::SessionVersion vers) |
void | clear () |
virtual char const * | getPluginTag () const |
Get the plugin tag. | |
virtual int64_t | getPluginId () const |
Get the plugin instance ID. | |
SpdyRequest * | find_request (int streamId) |
void | cleanup_request (int streamId) |
Data Fields | |
int64_t | sm_id |
spdy::SessionVersion | version |
uint64_t | total_size |
TSHRTime | start_time |
NetVConnection * | vc |
TSIOBuffer | req_buffer |
TSIOBufferReader | req_reader |
TSIOBuffer | resp_buffer |
TSIOBufferReader | resp_reader |
TSVIO | read_vio |
TSVIO | write_vio |
int | event |
spdylay_session * | session |
map< int32_t, SpdyRequest * > | req_map |
Definition at line 96 of file SpdyClientSession.h.
SpdyClientSession::SpdyClientSession | ( | ) | [inline] |
Definition at line 101 of file SpdyClientSession.h.
SpdyClientSession::~SpdyClientSession | ( | ) | [inline] |
Definition at line 104 of file SpdyClientSession.h.
References clear().
void SpdyClientSession::cleanup_request | ( | int | streamId | ) | [inline] |
Definition at line 142 of file SpdyClientSession.h.
References SpdyRequest::clear(), find_request(), ClassAllocator< C >::free(), and req_map.
Referenced by spdy_prepare_status_response_and_clean_request(), and spdy_read_fetch_body_callback().
void SpdyClientSession::clear | ( | void | ) |
Definition at line 118 of file SpdyClientSession.cc.
References SpdyRequest::clear(), Debug, Error, event, Continuation::mutex, req_buffer, req_map, req_reader, resp_buffer, resp_reader, session, sm_id, SPDY_DECREMENT_THREAD_DYN_STAT, SPDY_STAT_CURRENT_CLIENT_SESSION_COUNT, spdyRequestAllocator, TSIOBufferDestroy(), TSIOBufferReaderFree(), TSVConnClose(), and vc.
Referenced by ~SpdyClientSession().
SpdyRequest* SpdyClientSession::find_request | ( | int | streamId | ) | [inline] |
Definition at line 136 of file SpdyClientSession.h.
References req_map.
Referenced by cleanup_request(), spdy_on_data_chunk_recv_callback(), spdy_on_data_recv_callback(), and spdy_read_fetch_body_callback().
int64_t SpdyClientSession::getPluginId | ( | ) | const [virtual] |
Get the plugin instance ID.
A plugin can create multiple subsidiary instances. This is used as the identifier for those to distinguish the instances.
Reimplemented from PluginIdentity.
Definition at line 270 of file SpdyClientSession.cc.
References sm_id.
char const * SpdyClientSession::getPluginTag | ( | ) | const [virtual] |
Get the plugin tag.
The returned string must have a lifetime at least as long as the plugin.
NULL
. Reimplemented from PluginIdentity.
Definition at line 276 of file SpdyClientSession.cc.
References version.
void SpdyClientSession::init | ( | NetVConnection * | netvc, | |
spdy::SessionVersion | vers | |||
) |
Definition at line 89 of file SpdyClientSession.cc.
References atomic_inc, g_sm_id, HRTIME_SECONDS, ink_release_assert, Continuation::mutex, new_ProxyMutex(), req_map, session, SET_HANDLER, NetVConnection::set_inactivity_timeout(), sm_id, spdy_accept_no_activity_timeout, spdy_callbacks, SPDY_INCREMENT_THREAD_DYN_STAT, SPDY_STAT_CURRENT_CLIENT_SESSION_COUNT, SPDY_STAT_TOTAL_CLIENT_CONNECTION_COUNT, start_time, total_size, TShrtime(), vc, and version.
Referenced by spdy_cs_create().
Definition at line 127 of file SpdyClientSession.h.
Referenced by clear().
Definition at line 124 of file SpdyClientSession.h.
Referenced by spdy_on_data_send_callback(), spdy_process_write(), and spdy_recv_callback().
Definition at line 118 of file SpdyClientSession.h.
Referenced by clear(), and spdy_cs_create().
map<int32_t, SpdyRequest*> SpdyClientSession::req_map |
Definition at line 130 of file SpdyClientSession.h.
Referenced by cleanup_request(), clear(), find_request(), init(), spdy_on_ctrl_recv_callback(), and spdy_prepare_status_response_and_clean_request().
Definition at line 119 of file SpdyClientSession.h.
Referenced by clear(), spdy_cs_create(), and spdy_recv_callback().
Definition at line 121 of file SpdyClientSession.h.
Referenced by clear(), spdy_cs_create(), and spdy_send_callback().
Definition at line 122 of file SpdyClientSession.h.
Referenced by clear(), spdy_cs_create(), and spdy_process_write().
spdylay_session* SpdyClientSession::session |
Definition at line 128 of file SpdyClientSession.h.
Referenced by clear(), init(), spdy_prepare_status_response_and_clean_request(), spdy_process_fetch_body(), spdy_process_fetch_header(), spdy_process_read(), and spdy_process_write().
int64_t SpdyClientSession::sm_id |
Definition at line 111 of file SpdyClientSession.h.
Referenced by clear(), SpdyRequest::clear(), getPluginId(), init(), spdy_fetcher_launch(), spdy_on_data_recv_callback(), spdy_process_fetch(), spdy_process_fetch_header(), spdy_process_write(), spdy_read_fetch_body_callback(), spdy_show_ctl_frame(), and spdy_show_data_frame().
Definition at line 114 of file SpdyClientSession.h.
Referenced by init().
uint64_t SpdyClientSession::total_size |
Definition at line 113 of file SpdyClientSession.h.
Referenced by init(), spdy_process_write(), and spdy_send_callback().
Definition at line 116 of file SpdyClientSession.h.
Referenced by clear(), init(), and spdy_fetcher_launch().
Definition at line 112 of file SpdyClientSession.h.
Referenced by getPluginTag(), and init().
Definition at line 125 of file SpdyClientSession.h.
Referenced by spdy_on_ctrl_recv_callback(), spdy_on_data_recv_callback(), spdy_prepare_status_response_and_clean_request(), spdy_process_fetch_body(), spdy_process_fetch_header(), spdy_process_write(), and spdy_read_fetch_body_callback().