]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/MaxConnection.h
8f11b6930066f5663330aa911d11118a58663cdd
[thirdparty/squid.git] / src / acl / MaxConnection.h
1 /*
2 * Copyright (C) 1996-2016 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_ACLMAXCONNECTION_H
10 #define SQUID_ACLMAXCONNECTION_H
11
12 #include "acl/Acl.h"
13 #include "acl/Checklist.h"
14
15 /// \ingroup ACLAPI
16 class ACLMaxConnection : public ACL
17 {
18 MEMPROXY_CLASS(ACLMaxConnection);
19
20 public:
21 ACLMaxConnection(char const *);
22 ACLMaxConnection(ACLMaxConnection const &);
23 ~ACLMaxConnection();
24 ACLMaxConnection&operator=(ACLMaxConnection const &);
25
26 virtual ACL *clone()const;
27 virtual char const *typeString() const;
28 virtual void parse();
29 virtual int match(ACLChecklist *checklist);
30 virtual SBufList dump() const;
31 virtual bool empty () const;
32 virtual bool valid () const;
33 virtual void prepareForUse();
34
35 protected:
36 static Prototype RegistryProtoype;
37 static ACLMaxConnection RegistryEntry_;
38 char const *class_;
39 int limit;
40 };
41
42 #endif /* SQUID_ACLMAXCONNECTION_H */
43