]>
Commit | Line | Data |
---|---|---|
5dee515e | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
5dee515e | 3 | * |
bbc27441 AJ |
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. | |
5dee515e | 7 | */ |
8 | ||
b0dd28ba | 9 | #ifndef SQUID_ACLMAXCONNECTION_H |
10 | #define SQUID_ACLMAXCONNECTION_H | |
63be0a78 | 11 | |
3ad63615 | 12 | #include "acl/Acl.h" |
5dee515e | 13 | |
63be0a78 | 14 | /// \ingroup ACLAPI |
b0dd28ba | 15 | class ACLMaxConnection : public ACL |
62e76326 | 16 | { |
b001e822 | 17 | MEMPROXY_CLASS(ACLMaxConnection); |
b0dd28ba | 18 | |
741c2986 | 19 | public: |
b0dd28ba | 20 | ACLMaxConnection(char const *); |
337b9aa4 AR |
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; | |
62e76326 | 30 | |
b0dd28ba | 31 | protected: |
b0dd28ba | 32 | char const *class_; |
33 | int limit; | |
34 | }; | |
5dee515e | 35 | |
b0dd28ba | 36 | #endif /* SQUID_ACLMAXCONNECTION_H */ |
f53969cc | 37 |