source: squid-ssl/trunk/fuentes/src/acl/MaxConnection.h @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 2 years ago

Initial release

File size: 1.1 KB
Line 
1/*
2 * Copyright (C) 1996-2015 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
16class ACLMaxConnection : public ACL
17{
18
19public:
20    MEMPROXY_CLASS(ACLMaxConnection);
21
22    ACLMaxConnection(char const *);
23    ACLMaxConnection(ACLMaxConnection const &);
24    ~ACLMaxConnection();
25    ACLMaxConnection&operator=(ACLMaxConnection const &);
26
27    virtual ACL *clone()const;
28    virtual char const *typeString() const;
29    virtual void parse();
30    virtual int match(ACLChecklist *checklist);
31    virtual SBufList dump() const;
32    virtual bool empty () const;
33    virtual bool valid () const;
34    virtual void prepareForUse();
35
36protected:
37    static Prototype RegistryProtoype;
38    static ACLMaxConnection RegistryEntry_;
39    char const *class_;
40    int limit;
41};
42
43MEMPROXY_CLASS_INLINE(ACLMaxConnection);
44
45#endif /* SQUID_ACLMAXCONNECTION_H */
46
Note: See TracBrowser for help on using the repository browser.