MaxConnection.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_ACL_MAXCONNECTION_H
10 #define SQUID_SRC_ACL_MAXCONNECTION_H
11 
12 #include "acl/Node.h"
13 
16 {
18 
19 public:
20  ACLMaxConnection(char const *);
21  ~ACLMaxConnection() override;
22 
23  char const *typeString() const override;
24  void parse() override;
25  int match(ACLChecklist *checklist) override;
26  SBufList dump() const override;
27  bool empty () const override;
28  bool valid () const override;
29  void prepareForUse() override;
30 
31 protected:
32  char const *class_;
33  int limit;
34 };
35 
36 #endif /* SQUID_SRC_ACL_MAXCONNECTION_H */
37 
SBufList dump() const override
bool empty() const override
std::list< SBuf > SBufList
Definition: forward.h:22
ACLMaxConnection(char const *)
void prepareForUse() override
void parse() override
parses node representation in squid.conf; dies on failures
const char * typeString() const override
bool valid() const override
~ACLMaxConnection() override
Definition: Node.h:25
const char * class_
Definition: MaxConnection.h:32
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this Acl::Node.
MEMPROXY_CLASS(ACLMaxConnection)

 

Introduction

Documentation

Support

Miscellaneous