]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/MaxConnection.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / acl / MaxConnection.h
CommitLineData
5dee515e 1/*
bbc27441 2 * Copyright (C) 1996-2014 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
AR
12#include "acl/Acl.h"
13#include "acl/Checklist.h"
5dee515e 14
63be0a78 15/// \ingroup ACLAPI
b0dd28ba 16class ACLMaxConnection : public ACL
62e76326 17{
18
19public:
b001e822 20 MEMPROXY_CLASS(ACLMaxConnection);
b0dd28ba 21
22 ACLMaxConnection(char const *);
23 ACLMaxConnection(ACLMaxConnection const &);
24 ~ACLMaxConnection();
25 ACLMaxConnection&operator=(ACLMaxConnection const &);
62e76326 26
b0dd28ba 27 virtual ACL *clone()const;
28 virtual char const *typeString() const;
29 virtual void parse();
30 virtual int match(ACLChecklist *checklist);
9b859d6f 31 virtual SBufList dump() const;
4b0f5de8 32 virtual bool empty () const;
b0dd28ba 33 virtual bool valid () const;
34 virtual void prepareForUse();
62e76326 35
b0dd28ba 36protected:
b0dd28ba 37 static Prototype RegistryProtoype;
38 static ACLMaxConnection RegistryEntry_;
39 char const *class_;
40 int limit;
41};
5dee515e 42
d85b8894 43MEMPROXY_CLASS_INLINE(ACLMaxConnection);
b001e822 44
b0dd28ba 45#endif /* SQUID_ACLMAXCONNECTION_H */