DestinationDomain.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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_ACLDESTINATIONDOMAIN_H
10 #define SQUID_ACLDESTINATIONDOMAIN_H
11 
12 #include "acl/Acl.h"
13 #include "acl/Checklist.h"
14 #include "acl/Data.h"
15 #include "acl/Strategised.h"
16 #include "dns/forward.h"
17 
19 class ACLDestinationDomainStrategy : public ACLStrategy<char const *>
20 {
21 
22 public:
23  /* ACLStrategy API */
24  virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
25  virtual bool requiresRequest() const {return true;}
26  virtual const Acl::Options &options();
27 
28 private:
30 };
31 
34 {
35 
36 public:
38  virtual void checkForAsync(ACLChecklist *)const;
39 
40 private:
42  static void LookupDone(const char *, const Dns::LookupDetails &, void *);
43 };
44 
45 #endif /* SQUID_ACLDESTINATIONDOMAIN_H */
46 
encapsulates DNS lookup results
Definition: LookupDetails.h:20
OptionValue< bool > BooleanOptionValue
Definition: Options.h:132
static DestinationDomainLookup instance_
virtual bool requiresRequest() const
A matching algorithm.
Definition: Strategy.h:21
std::map< OptionName, const Option *, OptionNameCmp > Options
name:option map
Definition: Options.h:159
Acl::BooleanOptionValue lookupBanned
Are DNS lookups allowed?
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *)
virtual const Acl::Options & options()
code related to Squid Instance and PID file management
Definition: Instance.h:17

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors