]>
Commit | Line | Data |
---|---|---|
5dee515e | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 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 *); |
21 | ACLMaxConnection(ACLMaxConnection const &); | |
22 | ~ACLMaxConnection(); | |
23 | ACLMaxConnection&operator=(ACLMaxConnection const &); | |
62e76326 | 24 | |
b0dd28ba | 25 | virtual ACL *clone()const; |
26 | virtual char const *typeString() const; | |
27 | virtual void parse(); | |
28 | virtual int match(ACLChecklist *checklist); | |
9b859d6f | 29 | virtual SBufList dump() const; |
4b0f5de8 | 30 | virtual bool empty () const; |
b0dd28ba | 31 | virtual bool valid () const; |
32 | virtual void prepareForUse(); | |
62e76326 | 33 | |
b0dd28ba | 34 | protected: |
b0dd28ba | 35 | char const *class_; |
36 | int limit; | |
37 | }; | |
5dee515e | 38 | |
b0dd28ba | 39 | #endif /* SQUID_ACLMAXCONNECTION_H */ |
f53969cc | 40 |