Public Member Functions | Data Fields

HttpTunnelConsumer Struct Reference

#include <HttpTunnel.h>

Collaboration diagram for HttpTunnelConsumer:
Collaboration graph
[legend]

Public Member Functions

 HttpTunnelConsumer ()
 LINK (HttpTunnelConsumer, link)
bool is_downstream_from (VConnection *vc)
 Check if this consumer is downstream from vc.
bool is_sink () const
 Check if this is a sink (final data destination).

Data Fields

HttpTunnelProducerproducer
HttpTunnelProducerself_producer
HttpTunnelType_t vc_type
VConnectionvc
IOBufferReaderbuffer_reader
HttpConsumerHandler vc_handler
VIOwrite_vio
int64_t skip_bytes
int64_t bytes_written
int handler_state
bool alive
bool write_success
const char * name

Detailed Description

Definition at line 166 of file HttpTunnel.h.


Constructor & Destructor Documentation

HttpTunnelConsumer::HttpTunnelConsumer (  ) 

Definition at line 458 of file HttpTunnel.cc.


Member Function Documentation

bool HttpTunnelConsumer::is_downstream_from ( VConnection vc  )  [inline]

Check if this consumer is downstream from vc.

Returns:
true if any producer in the tunnel eventually feeds data to this consumer.

Definition at line 521 of file HttpTunnel.h.

References producer, HttpTunnelProducer::self_consumer, and HttpTunnelProducer::vc.

Referenced by HttpSM::tunnel_handler_ua().

bool HttpTunnelConsumer::is_sink (  )  const [inline]

Check if this is a sink (final data destination).

Returns:
true if data exits the ATS process at this consumer.

Definition at line 537 of file HttpTunnel.h.

References HT_CACHE_WRITE, HT_HTTP_CLIENT, and vc_type.

Referenced by HttpTunnel::consumer_reenable().

HttpTunnelConsumer::LINK ( HttpTunnelConsumer  ,
link   
)

Field Documentation

Definition at line 176 of file HttpTunnel.h.

Referenced by HttpTunnel::consumer_handler().

Definition at line 186 of file HttpTunnel.h.

Referenced by HttpTunnel::add_consumer(), and HttpTunnel::consumer_handler().

Definition at line 180 of file HttpTunnel.h.

Referenced by HttpTunnel::add_consumer().

Definition at line 177 of file HttpTunnel.h.

Referenced by HttpTunnel::add_consumer(), and HttpTunnel::consumer_handler().


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