#include <Prefetch.h>
Inherits Continuation.
Public Member Functions | |
KeepAliveConn () | |
int | init (IpEndpoint const &ip, MIOBuffer *buf, IOBufferReader *reader) |
void | free () |
int | append (IOBufferReader *reader) |
int | handleEvent (int event, void *data) |
Receives the event code and data for an Event. | |
Data Fields | |
IpEndpoint | ip |
MIOBuffer * | buf |
IOBufferReader * | reader |
MIOBuffer * | read_buf |
NetVConnection * | childVC |
VIO * | vio |
KeepAliveConn * | next |
int64_t | nbytes_added |
Definition at line 350 of file Prefetch.h.
KeepAliveConn::KeepAliveConn | ( | ) | [inline] |
Definition at line 354 of file Prefetch.h.
References ip.
int KeepAliveConn::append | ( | IOBufferReader * | reader | ) | [inline] |
Definition at line 2047 of file Prefetch.cc.
References buf, nbytes_added, IOBufferReader::read_avail(), VIO::reenable(), vio, and MIOBuffer::write().
Referenced by KeepAliveConnTable::append().
void KeepAliveConn::free | ( | void | ) |
Definition at line 2145 of file Prefetch.cc.
References KeepAliveConnTable::arr, buf, childVC, Ptr< T >::clear(), Debug, NetVConnection::do_io_close(), free_MIOBuffer(), ip, KeepAliveConnTable::ip_hash(), Continuation::mutex, next, and read_buf.
Referenced by handleEvent().
int KeepAliveConn::handleEvent | ( | int | event, | |
void * | data | |||
) |
Receives the event code and data for an Event.
This function receives the event code and data for an event and forwards them to the current continuation handler. The processor calling back the continuation is responsible for acquiring its lock.
event | Event code to be passed at callback (Processor specific). | |
data | General purpose data related to the event code (Processor specific). |
Reimplemented from Continuation.
Definition at line 2175 of file Prefetch.cc.
References ats_ip_ntop(), childVC, Debug, NetVConnection::do_io_read(), NetVConnection::do_io_write(), free(), HRTIME_SECONDS, ink_assert, INT64_MAX, ip, PrefetchConfiguration::keepalive_timeout, NET_EVENT_OPEN, NET_EVENT_OPEN_FAILED, IOBufferReader::read_avail(), read_buf, reader, IpEndpoint::sa, NetVConnection::set_inactivity_timeout(), VC_EVENT_EOS, VC_EVENT_ERROR, VC_EVENT_INACTIVITY_TIMEOUT, VC_EVENT_READ_COMPLETE, VC_EVENT_READ_READY, VC_EVENT_WRITE_READY, and vio.
Referenced by init().
int KeepAliveConn::init | ( | IpEndpoint const & | ip, | |
MIOBuffer * | buf, | |||
IOBufferReader * | reader | |||
) |
Definition at line 2120 of file Prefetch.cc.
References KeepAliveConnTable::arr, buf, childVC, NetProcessor::connect_re(), handleEvent(), ip, KeepAliveConnTable::ip_hash(), Continuation::mutex, nbytes_added, netProcessor, new_MIOBuffer, next, IOBufferReader::read_avail(), read_buf, reader, IpEndpoint::sa, SET_HANDLER, and vio.
Referenced by KeepAliveConnTable::append().
Definition at line 366 of file Prefetch.h.
Definition at line 371 of file Prefetch.h.
Referenced by free(), handleEvent(), and init().
Definition at line 364 of file Prefetch.h.
Referenced by free(), handleEvent(), init(), and KeepAliveConn().
int64_t KeepAliveConn::nbytes_added |
Definition at line 376 of file Prefetch.h.
Definition at line 374 of file Prefetch.h.
Referenced by KeepAliveConnTable::append(), free(), and init().
Definition at line 369 of file Prefetch.h.
Referenced by free(), handleEvent(), and init().
Definition at line 367 of file Prefetch.h.
Referenced by handleEvent(), and init().
Definition at line 372 of file Prefetch.h.
Referenced by append(), handleEvent(), and init().