#include <MaxConnection.h>

Inheritance diagram for ACLMaxConnection:
Collaboration diagram for ACLMaxConnection:

Public Member Functions

 ACLMaxConnection (char const *)
 ACLMaxConnection (ACLMaxConnection const &)
 ~ACLMaxConnection ()
ACLMaxConnectionoperator= (ACLMaxConnection const &)
virtual ACLclone () const
virtual char const * typeString () const
virtual void parse ()
 parses node representation in squid.conf; dies on failures More...
virtual int match (ACLChecklist *checklist)
 Matches the actual data in checklist against this ACL. More...
virtual SBufList dump () const
virtual bool empty () const
virtual bool valid () const
virtual void prepareForUse ()
void * operator new (size_t)
void operator delete (void *)
void context (const char *name, const char *configuration)
 sets user-specified ACL name and squid.conf context More...
bool matches (ACLChecklist *checklist) const
virtual const Acl::Optionsoptions ()
virtual void parseFlags ()
 configures ACL options, throwing on configuration errors More...
virtual bool isProxyAuth () const
int cacheMatchAcl (dlink_list *cache, ACLChecklist *)
virtual int matchForCache (ACLChecklist *checklist)
SBufList dumpOptions ()

Static Public Member Functions

static void ParseAclLine (ConfigParser &parser, ACL **head)
static void Initialize ()
static ACLFindByName (const char *name)

Public Attributes

char name [ACL_NAME_SZ]
char * cfgline
bool registered
 added to the global list of ACLs via aclRegister() More...

Protected Attributes

char const * class_
int limit

Private Member Functions

virtual bool requiresAle () const
 whether our (i.e. shallow) match() requires checklist to have a AccessLogEntry More...
virtual bool requiresRequest () const
 whether our (i.e. shallow) match() requires checklist to have a request More...
virtual bool requiresReply () const
 whether our (i.e. shallow) match() requires checklist to have a reply More...

Detailed Description

Definition at line 15 of file MaxConnection.h.

Constructor & Destructor Documentation

◆ ACLMaxConnection() [1/2]

ACLMaxConnection::ACLMaxConnection ( char const *  theClass)

Definition at line 24 of file MaxConnection.cc.

Referenced by clone().

◆ ACLMaxConnection() [2/2]

ACLMaxConnection::ACLMaxConnection ( ACLMaxConnection const &  old)

Definition at line 27 of file MaxConnection.cc.

◆ ~ACLMaxConnection()

ACLMaxConnection::~ACLMaxConnection ( )

Definition at line 30 of file MaxConnection.cc.

Member Function Documentation

◆ cacheMatchAcl()

◆ clone()

ACL * ACLMaxConnection::clone ( ) const

Definition at line 19 of file MaxConnection.cc.

References ACLMaxConnection().

◆ context()

void ACL::context ( const char *  name,
const char *  configuration 

◆ dump()

SBufList ACLMaxConnection::dump ( ) const

Implements ACL.

Definition at line 82 of file MaxConnection.cc.

References limit, and s.

◆ dumpOptions()

SBufList ACL::dumpOptions ( )
approximate options configuration

Definition at line 296 of file Acl.cc.

References SBufStream::buf(), SBuf::isEmpty(), and ACL::options().

Referenced by dump_acl().

◆ empty()

bool ACLMaxConnection::empty ( ) const

Implements ACL.

Definition at line 40 of file MaxConnection.cc.

◆ FindByName()

ACL * ACL::FindByName ( const char *  name)

◆ Initialize()

void ACL::Initialize ( )

Definition at line 404 of file Acl.cc.

References SquidConfig::aclList, Config, debugs, ACL::next, and ACL::prepareForUse().

Referenced by serverConnectionsOpen().

◆ isProxyAuth()

bool ACL::isProxyAuth ( ) const

Reimplemented in ACLIdent, ACLExternal, and ACLProxyAuth.

Definition at line 283 of file Acl.cc.

Referenced by aclIsProxyAuth().

◆ match()

int ACLMaxConnection::match ( ACLChecklist checklist)

Implements ACL.

Definition at line 76 of file MaxConnection.cc.

References clientdbEstablished(), Filled(), and limit.

◆ matches()

bool ACL::matches ( ACLChecklist checklist) const

Orchestrates matching checklist against the ACL using match(), after checking preconditions and while providing debugging.

true if and only if there was a successful match. Updates the checklist state on match, async, and failure.

Definition at line 120 of file Acl.cc.

References AclMatchedName, ACLChecklist::asyncInProgress(), DBG_IMPORTANT, debugs, ACLChecklist::hasAle(), ACLChecklist::hasReply(), ACLChecklist::hasRequest(), ACL::match(), ACL::name, ACL::requiresAle(), ACL::requiresReply(), ACL::requiresRequest(), and ACLChecklist::verifyAle().

Referenced by ACLChecklist::matchAndFinish(), and ACLChecklist::matchChild().

◆ matchForCache()

int ACL::matchForCache ( ACLChecklist checklist)

Reimplemented in ACLProxyAuth.

Definition at line 315 of file Acl.cc.

References fatal().

Referenced by ACL::cacheMatchAcl().


ACLMaxConnection::MEMPROXY_CLASS ( ACLMaxConnection  )

◆ operator delete()

void ACL::operator delete ( void *  )

Definition at line 86 of file Acl.cc.

References fatal().

◆ operator new()

void * ACL::operator new ( size_t  )

Definition at line 79 of file Acl.cc.

References fatal().

◆ operator=()

ACLMaxConnection& ACLMaxConnection::operator= ( ACLMaxConnection const &  )

◆ options()

virtual const Acl::Options& ACL::options ( )
(linked) Options supported by this ACL

Reimplemented in ACLMaxUserIP, ACLStrategised< M >, and ACLDestinationIP.

Definition at line 63 of file Acl.h.

References Acl::NoOptions().

Referenced by ACL::dumpOptions(), and ACL::parseFlags().

◆ parse()

void ACLMaxConnection::parse ( )

Implements ACL.

Definition at line 52 of file MaxConnection.cc.

References DBG_CRITICAL, debugs, limit, and ConfigParser::strtokFile().

◆ ParseAclLine()

◆ parseFlags()

void ACL::parseFlags ( )

Reimplemented in ACLIdent, ACLProxyAuth, ACLStrategised< M >, and ACLExtUser.

Definition at line 289 of file Acl.cc.

References Acl::NoFlags(), ACL::options(), and Acl::ParseFlags().

◆ prepareForUse()

void ACLMaxConnection::prepareForUse ( )

Reimplemented from ACL.

Definition at line 95 of file MaxConnection.cc.

References SquidConfig::client_db, Config, DBG_CRITICAL, debugs, ACL::name, and SquidConfig::onoff.

◆ requiresAle()

bool ACL::requiresAle ( ) const

Reimplemented in ACLExternal.

Definition at line 375 of file Acl.cc.

Referenced by ACL::matches().

◆ requiresReply()

bool ACL::requiresReply ( ) const

Reimplemented in ACLStrategised< M >, and ACLHTTPStatus.

Definition at line 381 of file Acl.cc.

Referenced by ACL::matches().

◆ requiresRequest()

bool ACL::requiresRequest ( ) const

Reimplemented in ACLExternal, ACLProxyAuth, ACLMaxUserIP, Acl::TransactionInitiator, and ACLStrategised< M >.

Definition at line 387 of file Acl.cc.

Referenced by ACL::matches().

◆ typeString()

char const * ACLMaxConnection::typeString ( ) const

Implements ACL.

Definition at line 34 of file MaxConnection.cc.

References class_.

◆ valid()

bool ACLMaxConnection::valid ( ) const

Reimplemented from ACL.

Definition at line 46 of file MaxConnection.cc.

References limit.

Member Data Documentation

◆ cfgline

char* ACL::cfgline

Definition at line 84 of file Acl.h.

Referenced by ACL::~ACL(), ACL::context(), and Acl::AllOf::parse().

◆ class_

char const* ACLMaxConnection::class_

Definition at line 35 of file MaxConnection.h.

Referenced by typeString().

◆ limit

int ACLMaxConnection::limit

Definition at line 36 of file MaxConnection.h.

Referenced by dump(), match(), parse(), and valid().

◆ name

◆ next

ACL* ACL::next

Definition at line 85 of file Acl.h.

Referenced by dump_acl(), ACL::FindByName(), and ACL::Initialize().

◆ registered

bool ACL::registered

Definition at line 86 of file Acl.h.

Referenced by aclDeregister(), aclDestroyAcls(), and aclRegister().

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






Web Site Translations