Public Member Functions | Data Fields

KeepAliveConn Class Reference

#include <Prefetch.h>

Inherits Continuation.

Collaboration diagram for KeepAliveConn:
Collaboration graph
[legend]

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
MIOBufferbuf
IOBufferReaderreader
MIOBufferread_buf
NetVConnectionchildVC
VIOvio
KeepAliveConnnext
int64_t nbytes_added

Detailed Description

Definition at line 350 of file Prefetch.h.


Constructor & Destructor Documentation

KeepAliveConn::KeepAliveConn (  )  [inline]

Definition at line 354 of file Prefetch.h.

References ip.


Member Function Documentation

int KeepAliveConn::append ( IOBufferReader reader  )  [inline]
void KeepAliveConn::free ( void   ) 
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.

Parameters:
event Event code to be passed at callback (Processor specific).
data General purpose data related to the event code (Processor specific).
Returns:
State machine and processor specific return code.

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 
)

Field Documentation

Definition at line 366 of file Prefetch.h.

Referenced by append(), free(), and init().

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().

Definition at line 376 of file Prefetch.h.

Referenced by append(), and init().

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().


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