#include <ICP.h>

Inheritance diagram for ICPState:
Collaboration diagram for ICPState:

Public Member Functions

 ICPState (icp_common_t &aHeader, HttpRequest *aRequest)
 
virtual ~ICPState ()
 
bool foundHit (const StoreEntry &) const
 whether the found entry warrants an ICP_HIT response More...
 
virtual void created (StoreEntry *)=0
 

Public Attributes

icp_common_t header
 
HttpRequestrequest
 
int fd
 
Ip::Address from
 
char * url
 

Protected Member Functions

virtual void fillChecklist (ACLFilledChecklist &) const override
 configure the ACL checklist with the current transaction state More...
 
bool mayInitiateCollapsing () const
 whether Squid configuration allows us to become a CF initiator More...
 
bool mayCollapseOn (const StoreEntry &initiatorEntry) const
 whether Squid configuration allows collapsing on the initiatorEntry More...
 
bool onCollapsingPath () const
 whether Squid configuration allows collapsing for this transaction More...
 

Protected Attributes

AccessLogEntryPointer al
 

Detailed Description

Todo:
mempool this

Definition at line 64 of file ICP.h.

Constructor & Destructor Documentation

ICPState::ICPState ( icp_common_t aHeader,
HttpRequest aRequest 
)

Definition at line 128 of file icp_v2.cc.

References HTTPMSGLOCK(), and request.

ICPState::~ICPState ( )
virtual

Definition at line 137 of file icp_v2.cc.

References HTTPMSGUNLOCK(), request, safe_free, and url.

Member Function Documentation

virtual void StoreClient::created ( StoreEntry )
pure virtualinherited
void ICPState::fillChecklist ( ACLFilledChecklist checklist) const
overrideprotectedvirtual
bool StoreClient::mayCollapseOn ( const StoreEntry initiatorEntry) const
protectedinherited
bool StoreClient::mayInitiateCollapsing ( ) const
inlineprotectedinherited

Member Data Documentation

AccessLogEntryPointer ICPState::al
mutableprotected

Definition at line 84 of file ICP.h.

Referenced by ICP3State::created(), ICP2State::created(), and fillChecklist().

int ICPState::fd

Definition at line 76 of file ICP.h.

Referenced by ICP3State::created(), ICP2State::created(), doV2Query(), and doV3Query().

Ip::Address ICPState::from

Definition at line 78 of file ICP.h.

Referenced by ICP3State::created(), ICP2State::created(), doV2Query(), doV3Query(), and fillChecklist().

icp_common_t ICPState::header

Definition at line 74 of file ICP.h.

Referenced by ICP3State::created(), and ICP2State::created().

HttpRequest* ICPState::request

Definition at line 75 of file ICP.h.

Referenced by ICP2State::created(), fillChecklist(), foundHit(), ICPState(), and ~ICPState().

char* ICPState::url

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors